12 Replies Latest reply: Apr 28, 2010 12:42 PM by Sheshi Sankineni RSS

    Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.

    chrisancheta
      Hi All,
      After installing PeopleSoft OVM in our server, I need to recompile the COBOL. I believe this is not included in the OVM. These are the steps I did.
      1. Installed Microfocus Server Express 5.0 WrapPack 4
      2. Follow the steps in Compiling Cobol in Unix mentioned is the PeopleTools_8.50_Installation_Oracle guide.
      I was able to successfully compille the COBOL files by running ./pscbl.mak. The next step is Linking COBOL Components on UNIX by running ./psrun.mak and here I got the error:

      +./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...+
      +./psrun.mak - Error(s) encountered creating PSRUN!+
      +./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages+
      +[root@pshcm91ab setup]# more /opt/oracle/psft/appbatch/tools/setup/psrun.err+
      cob64: can not execute ld
      +[root@pshcm91ab setup]#+

      I followed all the steps in setting environment variable mention in the "Compiling Cobols in Unix" in PeopleTools_8.50_Installation_Oracle.

      Is there any specific documentation of compiling COBOLs in PeopleSoft OVM?
      Can anyone help me with this?
      Thanks in advance.
      -Chris

      Edited by: user9977167 on 4/02/2010 15:52

      Edited by: user9977167 on 5/02/2010 06:18
        • 2. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
          chrisancheta
          Thanks Nick for responding.
          Here's the result of ENV.


          PS_DB=ORA
          ICU_DATA=NOTUSED
          HOSTNAME=pshcm91ab.presenceofit.com.au
          PS_DM_LOG=/root/PS_DM/log
          TERM=xterm
          SHELL=/bin/bash
          SQRDIR=/opt/oracle/psft/appbatch/tools/bin/sqr/ORA/bin
          HISTSIZE=1000
          NLS_LANG=AMERICAN_AMERICA.UTF8
          SSH_CLIENT=10.0.0.31 1104 22
          PS_JRE=/opt/oracle/psft/appbatch/tools/jre
          COBDIR=/products/mf/svrexp-50_wp4-64bit
          PS_LIBPATH=/opt/oracle/psft/appbatch/tools/bin
          SSH_TTY=/dev/pts/0
          SQR_HOME=/opt/oracle/psft/appbatch/tools/bin/sqr/ORA
          DM_HOME=/root/PS_DM
          USER=root
          TM_GP_AUTOSPAWNEXIT_FIX=yes
          LD_LIBRARY_PATH=/opt/oracle/psft/appbatch/tools/jre/lib/amd64/native_threads:/opt/oracle/psft/appbatch/tools/jre/lib/amd64/server:/opt/oracle/psft/appbatch/tools/jre/lib/amd64:/opt/oracle/psft/appbatch/bea/tuxedo/bin:/opt/oracle/psft/appbatch/bea/tuxedo/lib:/opt/oracle/psft/appbatch/oracle-client/10.2.0.4-64bit/lib::/opt/oracle/psft/appbatch/oracle-client/10.2.0.4-64bit/lib:/opt/oracle/psft/appbatch/tools/bin:/opt/oracle/psft/appbatch/tools/bin/interfacedrivers:/opt/oracle/psft/appbatch/tools/bin/sqr/ORA/bin:/opt/oracle/psft/appbatch/tools/optbin:/opt/oracle/psft/appbatch/tools/verity/linux/_ilnx21/bin:/opt/oracle/psft/appbatch/oracle-client/10.2.0.4-64bit/lib:/products/mf/svrexp-50_wp4-64bit/lib
          LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
          ORACLE_SID=HCM91
          LIBPATH=:/opt/oracle/psft/appbatch/oracle-client/10.2.0.4-64bit/lib:/products/mf/svrexp-50_wp4-64bit/lib
          UMASKULOGPERM=yes
          PS_HOSTTYPE=oel-5-x86_64
          PSJLIBPATH=/opt/oracle/psft/appbatch/tools/jre/lib/amd64/native_threads:/opt/oracle/psft/appbatch/tools/jre/lib/amd64/server:/opt/oracle/psft/appbatch/tools/jre/lib/amd64
          COBPATH=/opt/oracle/psft/appbatch/tools/cblbin
          TNS_ADMIN=/etc
          MAIL=/var/spool/mail/root
          PATH=/usr/ccs/bin:/products/mf/svrexp-50_wp4-64bit/bin:/opt/oracle/psft/appbatch/tools/appserv:/opt/oracle/psft/appbatch/tools/jre/bin:/opt/oracle/psft/appbatch/bea/tuxedo/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/oracle/psft/appbatch/oracle-client/10.2.0.4-64bit/bin:/opt/oracle/psft/appbatch/tools/bin:/opt/oracle/psft/appbatch/tools/bin/sqr/ORA/bin:/opt/oracle/psft/appbatch/tools/verity/linux/_ilnx21/bin:/root/bin
          INPUTRC=/etc/inputrc
          PWD=/root
          PS_SERVDIR=/root/PS_CACHE
          PS_SERVER_CFG=/opt/oracle/psft/appbatch/tools/setup/psdmtx.cfg
          LANG=C
          PS_DM_SCRIPT=/opt/oracle/psft/appbatch/tools/scripts
          TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo
          IS_PS_PLT=Y
          JAVA_FONTS=/opt/oracle/psft/appbatch/tools/jre/lib/fonts:/usr/share/fonts/default/TrueType:/usr/share/fonts/ja/TrueType:/usr/share/fonts/zh_CN/TrueType:/usr/share/fonts/zh_TW/TrueType:/usr/share/fonts/ko/TrueType
          SHLVL=1
          HOME=/root
          LOGNAME=root
          CLASSPATH=/opt/oracle/psft/appbatch/tools/appserv/classes
          SSH_CONNECTION=10.0.0.31 1104 10.0.0.79 22
          PS_DBVER=8.1.x
          LESSOPEN=|/usr/bin/lesspipe.sh %s
          PS_DM_DATA_IN=/opt/oracle/psft/appbatch/tools/data
          SHLIB_PATH=:/opt/oracle/psft/appbatch/oracle-client/10.2.0.4-64bit/lib:/products/mf/svrexp-50_wp4-64bit/lib
          ORACLE_HOME=/opt/oracle/psft/appbatch/oracle-client/10.2.0.4-64bit
          G_BROKEN_FILENAMES=1
          PS_DM_DATA_OUT=/root/PS_DM/data
          PS_HOME=/opt/oracle/psft/appbatch/tools
          _=/bin/env

          Edited by: user9977167 on 5/02/2010 05:44
          • 3. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
            Nicolas.Gasparotto
            Hi,

            Ok, I reproduce your case :
            [psadm1@psovmab setup]$ ./psrun.mak
            ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
            ./psrun.mak - Error(s) encountered creating PSRUN!
            ./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages
            [psadm1@psovmab setup]$ more /opt/oracle/psft/appbatch/tools/setup/psrun.err
            cob64: can not execute ld
            [psadm1@psovmab setup]$
            It looks like a lot of rpm packages required by ld are missing on Peoplesoft OVM App/Batch server compared to the Peoplesoft OVM database server for instance.
            I added a lot of packages because of the dependendcies as below :
            **************************************************************************************
            From OEL5.2 Disk 1
            ==================
            -rw-r--r-- 1 root root  899210 Feb  7 10:10 kernel-headers-2.6.18-92.el5.x86_64.rpm
            -rw-r--r-- 1 root root  3073639 Feb  7 10:25 binutils-2.17.50.0.6-6.el5.x86_64.rpm
            -rw-r--r-- 1 root root  3114462 Feb  7 10:29 cpp-4.1.2-42.el5.x86_64.rpm
            
            [root@psovmab rpm]# rpm -Uvh kernel-headers-2.6.18-92.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:kernel-headers         ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh binutils-2.17.50.0.6-6.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:binutils               ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh cpp-4.1.2-42.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:cpp                    ########################################### [100%]
            [root@psovmab rpm]#
            
            **************************************************************************************
            From OEL5.2 Disk 2
            ==================
            -rw-r--r-- 1 root root  614718 Feb  7 10:05 glibc-headers-2.5-24.x86_64.rpm
            -rw-r--r-- 1 root root 2535024 Feb  7 10:05 glibc-devel-2.5-24.x86_64.rpm
            -rw-r--r-- 1 root root 2105297 Feb  7 10:05 glibc-devel-2.5-24.i386.rpm
            -rw-r--r-- 1 root root 5544086 Feb  7 10:20 gcc-4.1.2-42.el5.x86_64.rpm
            -rw-r--r-- 1 root root 3987493 Feb  7 10:20 gcc-c++-4.1.2-42.el5.x86_64.rpm
            -rw-r--r-- 1 root root    83518 Feb  7 10:31 libgomp-4.1.2-42.el5.i386.rpm
            -rw-r--r-- 1 root root    84654 Feb  7 10:41 libgomp-4.1.2-42.el5.x86_64.rpm
            -rw-r--r-- 1 root root  2980440 Feb  7 10:43 libstdc++-devel-4.1.2-42.el5.x86_64.rpm
            -rw-r--r-- 1 root root    20483 Feb  7 11:46 elfutils-libelf-devel-0.125-3.el5.x86_64.rpm
            -rw-r--r-- 1 root root    58852 Feb  7 11:46 elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm
            -rw-r--r-- 1 root root   102193 Feb  7 11:49 elfutils-libs-0.125-3.el5.x86_64.rpm
            
            [root@psovmab rpm]# rpm -Uvh glibc-headers-2.5-24.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:glibc-headers          ########################################### [100%]
            [root@psovmab rpm]#
            [root@psovmab rpm]# rpm -Uvh glibc-devel-2.5-24.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:glibc-devel            ########################################### [100%]
            [root@psovmab rpm]#
            [root@psovmab rpm]# rpm -Uvh glibc-devel-2.5-24.i386.rpm
            Preparing...                ########################################### [100%]
               1:glibc-devel            ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh libgomp-4.1.2-42.el5.i386.rpm
            Preparing...                ########################################### [100%]
               1:libgomp                ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh libgomp-4.1.2-42.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:libgomp                ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh gcc-4.1.2-42.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:gcc                    ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh  libstdc++-devel-4.1.2-42.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:libstdc++-devel        ########################################### [100%]
            [root@psovmab rpm]#
            [root@psovmab rpm]# rpm -Uvh gcc-c++-4.1.2-42.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:gcc-c++                ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh elfutils-libs-0.125-3.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:elfutils-libs          ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh elfutils-libelf-devel-0.125-3.el5.x86_64.rpm elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:elfutils-libelf-devel-s########################################### [ 50%]
               2:elfutils-libelf-devel  ########################################### [100%]
            [root@psovmab rpm]#
            
            
            **************************************************************************************
            From OEL5.2 Disk 3
            ==================
            -rw-r--r-- 1 root root  4588773 Feb  7 10:22 compat-gcc-34-3.4.6-4.x86_64.rpm
            -rw-r--r-- 1 root root 13542100 Feb  7 10:23 compat-gcc-34-c++-3.4.6-4.x86_64.rpm
            -rw-r--r-- 1 root root   232846 Feb  7 12:21 compat-libstdc++-33-3.2.3-61.x86_64.rpm
            
            
            [root@psovmab rpm]# rpm -Uvh compat-gcc-34-3.4.6-4.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:compat-gcc-34          ########################################### [100%]
            [root@psovmab rpm]# rpm -Uvh compat-gcc-34-c++-3.4.6-4.x86_64.rpm
            Preparing...                ########################################### [100%]
               1:compat-gcc-34-c++      ########################################### [100%]
            [root@psovmab rpm]#
            The initial error is gone, but got a new one when linking :
            [psadm1@psovmab setup]$ ./psrun.mak
            ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
            ./psrun.mak - Error(s) encountered creating PSRUN!
            ./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages
            [psadm1@psovmab setup]$ more /opt/oracle/psft/appbatch/tools/setup/psrun.err
            ld: cannot find -lgcc
            [psadm1@psovmab setup]$
            I looked around for this error, found a Metalink note, but the suggestion does not apply here, the path directory metioned in $COBDIR/etc/cobopt already exists :
            [psadm1@psovmab setup]$ more $COBDIR/etc/cobopt
            -C nolist
            set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/3.4.6
            [psadm1@psovmab setup]$ ls /usr/lib/gcc/x86_64-redhat-linux/3.4.6
            32          crtbeginS.o  crtend.o   include   libgcc_eh.a  libgcc_s_32.so  libstdc++.a   libstdc++_nonshared.a  libsupc++.a
            crtbegin.o  crtbeginT.o  crtendS.o  libgcc.a  libgcc_s.so  libgcov.a       libstdc++.so  libstdc++_shared.so    specs
            [psadm1@psovmab setup]$
            So far, no luck, I'll still try, but you may have more luck to install a separate server with all the packages install from the scratch and run a process scheduler from there.

            Nicolas.
            • 4. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
              Nicolas.Gasparotto
              Just to let you know, I installed Peopletools 8.50, HRMS9.1 and Microfocus on a separate server OEL5.4 64bit (non Peoplesoft OVM) and I'm able to compile and link as well :
              [ptools@orion2:/apps/psoft/ptools850/setup]$ ./pscbl.mak
              
              ./pscbl.mak : Convert all files for Unicode ....
              
              
               Conversion Summary for Source Codes in  :
              
                   Source: /apps/psoft/ptools850/src/cbl/
                   Target: /apps/psoft/ptools850/src/cblunicode/
              
                    Number of Copy Libraries Read: 386
                                   Modified:       386
                               Not Modified:       0
              
                    Number of Programs Read:       516
                                   Modified:       516
                               Not Modified:       0
              
              ./pscbl.mak : All COBOL files were converted for Unicode successfully
              ./pscbl.mak : Compiling EGPCSRVC.cbl ...
              ./pscbl.mak : Compiling EGPPRCTL.cbl ...
              ./pscbl.mak : Compiling EGPPRSQL.cbl ...
              ./pscbl.mak : Compiling PTPWLGEN.cbl ...
              ...
              ./pscbl.mak : All COBOL programs have been successfully compiled.
              [ptools@orion2:/apps/psoft/ptools850/setup]$ ./psrun.mak
              ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-128.el5 ...
              ./psrun.mak - Successfully created PSRUN in directory: /apps/psoft/ptools850/bin
              ./psrun.mak - linking PSRUNRMT for oel-5-x86_64, Version 2.6.18-128.el5 ...
              ./psrun.mak - Successfully created PSRUNRMT in directory: /apps/psoft/ptools850/bin
              [ptools@orion2:/apps/psoft/ptools850/setup]$
              I created a new process scheduler from there, and able to run the cobol PTPDBTST against the database from the Peoplesoft OVM database server.
              The OEL version should not matter. Most likely a RPM package is missing, but I'm not able to figure out which one.

              Nicolas.
              • 5. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                Nicolas.Gasparotto
                Hi,

                Ok, I found the solution. In addition of the previous packages to be installed for the ld* issue, you should modify the following files for the lgcc* issue :

                1. Go to your directory where you installed microfocus, in $COBDIR/etc/
                2. You have the two files as below :
                [psadm1@psovmab etc]$ more cobopt
                -C nolist
                set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/3.4.6
                [psadm1@psovmab etc]$ more cobopt64
                -C nolist
                set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/3.4.3
                They are wrong.
                3. Modify these files as below :
                [psadm1@psovmab etc]$ more cobopt
                -C nolist
                set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32
                [psadm1@psovmab etc]$ vi cobopt64
                [psadm1@psovmab etc]$ more cobopt64
                -C nolist
                set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/3.4.6
                4. And eventually go back to $PS_HOME/setup and link your cobol, it should success :
                [psadm1@psovmab etc]$ cd $PS_HOME/setup
                [psadm1@psovmab setup]$ ./psrun.mak
                ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
                ./psrun.mak - Successfully created PSRUN in directory: /opt/oracle/psft/appbatch/tools/bin
                ./psrun.mak - linking PSRUNRMT for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
                ./psrun.mak - Successfully created PSRUNRMT in directory: /opt/oracle/psft/appbatch/tools/bin
                [psadm1@psovmab setup]$
                Somehow those files are correct onto my other installation outside Peoplesoft OVM... I'm not sure why the modification was not needed there but required here...

                Anyway, have fun,

                Nicolas.
                • 6. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                  chrisancheta
                  Hi Nicolas,
                  Thanks for looking into this issue and especially for resolving this. You even created an entry to your blog for this issue.:) I noticed it when I start looking for those rpms.
                  Anyway, I tried to do your solution but can't find the rpms in google. Most of them are outdated. I just want to confirm from you: Do I that I need to download from edelivery the Oracle Enterprise Linux Release 5 Update 2 for x86_64 (64 bit) (6 parts) for me to get the rpm files to be installed?
                  Thanks again!
                  You've been very helpful, you're better than the Installation Guide:)
                  -Chris
                  • 7. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                    Nicolas.Gasparotto
                    Chris,
                    Yes, on my side, I had a copy of each CD disk of OEL5.2 x86_64 downloaded from http://edelivery.oracle.com/linux
                    That's why I also showed from which CD I took the different packages (afaik, for your problem only the first 3 CDs are required).
                    I indeed created an entry in my blog here regarding this, it was an interesting exercise, eventhough I'm not sure the Peoplesoft OVM App/Batch have been build to run the Cobol.

                    Nicolas.
                    • 8. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                      chrisancheta
                      Finallly!!!!!!!!!!!!I got a success!
                      Thanks a lot Nicolas.
                      -Chris A
                      • 9. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                        chrisancheta
                        Hi Nicholas,
                        After running the psrun.mak successfully, I tried to test by running a COBOL program (GPPDPRUN ) from Calculate Absence and Payroll by choosing identify option. The status went to error and the log says

                        PSRUN: error while loading shared libraries: libcobrts64.so: cannot open shared object file: No such file or directory

                        Below is the log when I run my psrun.mak

                        +[root@pshcm91ab etc]# vi cobopt+
                        +[root@pshcm91ab etc]# vi cobopt64+
                        +[root@pshcm91ab etc]# cd $PS_HOME/setup+
                        +[root@pshcm91ab setup]# ./psrun.mak+
                        +./psrun.mak - linking PSRUN ...+
                        cob  -W e -e "" -x -o /opt/oracle/psft/appbatch/tools/bin/PSRUN  -L/opt/oracle/psft/appbatch/tools/bin          -lpscompat_ansi -lpssqlapi_ansi -lpsuser_ansi -lpspetssl -lpsora_ansi
                        +./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...+
                        +./psrun.mak - Successfully created PSRUN in directory: /opt/oracle/psft/appbatch/tools/bin+
                        +./psrun.mak - linking PSRUNRMT ...+
                        cob  -W e -e "" -x -o /opt/oracle/psft/appbatch/tools/bin/PSRUNRMT  -L/opt/oracle/psft/appbatch/tools/bin    -lpscobnet_ansi          -lpscompat_ansi -lpssqlapi_ansi -lpsuser_ansi -lpspetssl -lpsora_ansi
                        +./psrun.mak - linking PSRUNRMT for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...+
                        +./psrun.mak - Successfully created PSRUNRMT in directory: /opt/oracle/psft/appbatch/tools/bin+
                        +[root@pshcm91ab setup]#+


                        Thanks,
                        Chris
                        • 10. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                          chrisancheta
                          I was able to find the solution for this error in metalink [https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=660015.1]

                          However, I got another error.
                          Error in Running Cobol program in PeopleSoft OVM
                          • 11. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                            Sheshi Sankineni
                            Hi Nicolas,

                            We are planning to package COBOL compiler in HR & FSCM Templates. I am in the process of testing COBOL on a Tools VM (Tools VM comprises of AppBatch & PIA). I installed COBOL compiler on the VM with a 30 day eval license and am trying to compile them and got the following error:

                            [psadm1@stovm02-5 setup]$ ./pscbl.mak
                            ./pscbl.mak: line 356: [: -lt: unary operator expected

                            ./pscbl.mak : Convert all files for Unicode ....


                            Conversion Summary for Source Codes in :

                            Source: /opt/oracle/psft/pt/tools/src/cbl/
                            Target: /opt/oracle/psft/pt/tools/src/cblunicode/

                            Number of Copy Libraries Read: 463
                            Modified: 463
                            Not Modified: 0

                            Number of Programs Read: 423
                            Modified: 423
                            Not Modified: 0

                            ./pscbl.mak : All COBOL files were converted for Unicode successfully
                            ./pscbl.mak : Compiling CEPCRLUP.cbl ...
                            ./pscbl.mak: line 248: cob: command not found

                            Just curious where is "cob" command located.

                            Here is my env:

                            [psadm1@stovm02-5 tools]$ env
                            PS_DB=ORA
                            ICU_DATA=NOTUSED
                            HOSTNAME=stovm02-5.us.oracle.com
                            PS_DM_LOG=/home/psadm1/PS_DM/log
                            TERM=xterm
                            SHELL=/bin/bash
                            SQRDIR=/opt/oracle/psft/pt/tools/bin/sqr/ORA/bin
                            HISTSIZE=1000
                            NLS_LANG=AMERICAN_AMERICA.UTF8
                            SSH_CLIENT=10.147.94.65 3484 22
                            PS_JRE=/opt/oracle/psft/pt/tools/jre
                            COBDIR=/opt/oracle/psft/pt/microfocus
                            PS_LIBPATH=/opt/oracle/psft/pt/tools/bin
                            SSH_TTY=/dev/pts/1
                            SQR_HOME=/opt/oracle/psft/pt/tools/bin/sqr/ORA
                            DM_HOME=/home/psadm1/PS_DM
                            USER=psadm1
                            TM_GP_AUTOSPAWNEXIT_FIX=yes
                            LD_LIBRARY_PATH=/opt/oracle/psft/pt/microfocus/lib:/opt/oracle/psft/pt/tools/jre/lib/amd64/native_threads:/opt/oracle/psft/pt/tools/jre/lib/amd64/server:/opt/oracle/psft/pt/tools/jre/lib/amd64:/opt/oracle/psft/pt/bea/tuxedo/bin:/opt/oracle/psft/pt/bea/tuxedo/lib:/opt/oracle/psft/pt/oracle-client/11.1.0.7-64bit/lib::/opt/oracle/psft/pt/tools/bin:/opt/oracle/psft/pt/tools/bin/interfacedrivers:/opt/oracle/psft/pt/tools/bin/sqr/ORA/bin:/opt/oracle/psft/pt/tools/optbin:/opt/oracle/psft/pt/tools/verity/linux/_ilnx21/bin:/opt/oracle/psft/pt/oracle-client/11.1.0.7-64bit/lib
                            LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
                            UMASKULOGPERM=yes
                            PS_HOSTTYPE=oel-5-x86_64
                            PSJLIBPATH=/opt/oracle/psft/pt/tools/jre/lib/amd64/native_threads:/opt/oracle/psft/pt/tools/jre/lib/amd64/server:/opt/oracle/psft/pt/tools/jre/lib/amd64
                            COBPATH=/opt/oracle/psft/pt/tools/cblbin
                            TNS_ADMIN=/etc
                            MAIL=/var/spool/mail/psadm1
                            PATH=/opt/oracle/psft/pt/microfocus/bin:/opt/oracle/psft/pt/tools/appserv:/opt/oracle/psft/pt/tools/jre/bin:/opt/oracle/psft/pt/bea/tuxedo/bin:/opt/oracle/psft/pt/oracle-client/11.1.0.7-64bit/bin:/usr/local/bin:/bin:/usr/bin:/opt/oracle/psft/pt/tools/bin:/opt/oracle/psft/pt/tools/bin/sqr/ORA/bin:/opt/oracle/psft/pt/tools/verity/linux/_ilnx21/bin:/home/psadm1/bin
                            INPUTRC=/etc/inputrc
                            PWD=/opt/oracle/psft/pt/tools
                            PS_SERVDIR=/home/psadm1/PS_CACHE
                            PS_SERVER_CFG=/opt/oracle/psft/pt/tools/setup/psdmtx.cfg
                            LANG=C
                            PS_DM_SCRIPT=/opt/oracle/psft/pt/tools/scripts
                            TUXDIR=/opt/oracle/psft/pt/bea/tuxedo
                            IS_PS_PLT=Y
                            JAVA_FONTS=/opt/oracle/psft/pt/tools/jre/lib/fonts:/usr/share/fonts/default/TrueType:/usr/share/fonts/ja/TrueType:/usr/share/fonts/zh_CN/TrueType:/usr/share/fonts/zh_TW/TrueType:/usr/share/fonts/ko/TrueType
                            SHLVL=1
                            HOME=/home/psadm1
                            LOGNAME=psadm1
                            CLASSPATH=/opt/oracle/psft/pt/tools/appserv/classes
                            SSH_CONNECTION=10.147.94.65 3484 10.147.45.215 22
                            PS_DBVER=8.1.x
                            LESSOPEN=|/usr/bin/lesspipe.sh %s
                            PS_DM_DATA_IN=/opt/oracle/psft/pt/tools/data
                            ORACLE_HOME=/opt/oracle/psft/pt/oracle-client/11.1.0.7-64bit
                            G_BROKEN_FILENAMES=1
                            PS_DM_DATA_OUT=/home/psadm1/PS_DM/data
                            PS_HOME=/opt/oracle/psft/pt/tools
                            _=/bin/env
                            OLDPWD=/opt/oracle/psft/pt

                            Please let me know what is it I am missing

                            Thanks

                            -Sheshi
                            • 12. Re: Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”.
                              Sheshi Sankineni
                              Hi Nicolas,

                              my COBDIR was pointing to a wrong installation. Once I fixed it, I was able to compile the sources.

                              -Sheshi