Compiling COBOL

I tried compiling a sample cobol program (with embedded sql) with precompiler pro*COBOL for Oracle 8i. I used IBM visual Age for COBOl as the compiler. I was able to pre compile and compile the sample program provided with Oracle demo
(precomp/demo/procob2) . I got the following linker error
_SQLADR@8 could not resolve ..
_SQLADRVC@12 """"
_SQLBEX@0  etc...
Could anyone help me in linking this.. I just have one library included (ORASQL8.lib)
Thanks and Regards,
Lal Praksh..

Hi Todd/Ed,
We have one more doubt on which we need your help..
We are using AIX 6.1,Oracle 11g and all are 64 bit. MFCOBOL which we are using is 32 bit.While compling the code we are switching to 64 bit by using the command cobmode -s 64 and trying to run tuxbuild all+ command and we are encountering the errors which i have metioned in my earlier posts.
As vac.cfg file was missing we copied older versions as vac.cfg and tried to complie the codes again.we encountered the following error.
"BS-710b2.c", line 128.10: 1506-296 (S) #include file "mainexit.h" not found.
cob64: error(s) in C compilation: BS-710b2.c
so we added a script mainexit.h with cobinit() function declaration in the current directory.
As we tried with tuxbuild all command we are facing this error.
ld: 0711-224 WARNING: Duplicate symbol: .tpsvrdone
ld: 0711-224 WARNING: Duplicate symbol: .tpsvrinit
ld: 0711-224 WARNING: Duplicate symbol: TPSVRINIT
ld: 0711-224 WARNING: Duplicate symbol: .TPSVRINIT
ld: 0711-224 WARNING: Duplicate symbol: tpsvrinit
ld: 0711-224 WARNING: Duplicate symbol: tpsvrdone
ld: 0711-224 WARNING: Duplicate symbol: .memcpy
ld: 0711-224 WARNING: Duplicate symbol: memcpy
ld: 0711-224 WARNING: Duplicate symbol: .userlog
ld: 0711-224 WARNING: Duplicate symbol: userlog
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: .SQLADR
ld: 0711-317 ERROR: Undefined symbol: .SQLADRVC
ld: 0711-317 ERROR: Undefined symbol: .SQLBEX
CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o /BS-eb000.c -L${TUXDIR}/lib TPSVRINIT.o -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread
we have included this file as well /usr/local/opt/oracle/product/ostl133/precomp/lib/cobsqlintf.o still we are not able to solve this issue..
Please help us with this.. :-(
Thanks,
Shama

Similar Messages

  • Compiling COBOLs in PSOVM - psrun.mak error - "cob64: can not execute Id".

    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

    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.

  • FSCM9.0: Compiling COBOL Issue

    Folks,
    Hello. I am working on FSCM 9.0 General Ledger module to post Journal entries. I compiled COBOL using this command:
    c:\PS_HOME\setup>cblbld c: \temp\compile unicode
    The above command is supposed to copy all of source code from "PS_HOME\src\cbl" to "PS_HOME\temp\compile" and then create directory "PS_HOME\cblbinu". But the following message comes up:
    "Windows cannot open this file unicode.cfg. To open this file, Windows need to know what program created it. Windows can go online to look it up automatically. Or you manually select from a list of program on your computer."
    I select WordPad to open unicode.cfg and there is only one line in this file that is "[Unicode] Unicode=1".
    After that, an error message comes up:"Unicode COBOL compilation proceeding. Logging progress to file c:\temp\compile\CBLBLD.LOG. \temp\compile was unexpected at this time "
    Do any folks understand how to fix the above problem ? Exact procedure to compile COBOL for FSCM 9.0 in Windows ?
    Thanks.

    Please refer to the PeopleTools installation guide for the variables required and compile instructions. Also make sure that you use double quotes (") around the directory names when compiling via a DOS box. When the directory path has spaces you need to double quote the path (ie. "c:\program files\microfocus\").

  • Installing and Compiling COBOL on Windows

    Hi, I am at Installing and Compiling COBOL on Windows of PeopleTools_8.52_Installation_Oracle.pdf. After I typed in (basic syntax from pdf):
    CBLMAKE.BAT [] [ALL] [wildcard filename[ALL]] [wildcard filename | wildcard filename without extension[INT | GNT | EXE]] [EBCDIC] [LIST]
    This error appears:
    'wildcard' is not recognized as an internal or external command,
    operable program or batch file.
    Any advise? Thanks

    but now my step is after this already---> cblsrc PS_HOME C:\temp\compile
    After this step, it asks me to change directories to the compile directory which i think is (cd C:\temp\compile), and run CBLMAKE.BAT, using the basic syntax..... and I got that error... How can I do about it?

  • Error when compile COBOL file

    I install the Cumulative packages of PeopleSoft Enterprise Human Resources Management System and Campus Solutions 9.0 - Maintenance Pack 6 - Multi-Language for my HRCS system. After I deploy the COBOL files, I try to compile them. Most of the files can be compiled. However, when I compile of all 2007-2008 INAS COBOL programs using the file named inasbl07.mak, the error happed.
    ./inasbl07.mak : Convert INAS files for Unicode ....
    INAS 2007-2008 Unicode conversion routine beginning on Wed Oct 21 16:04:20 CST 2009...
    > Creating Work Area #1 folder...
    > Creating Work Area #2 folder...
    > Copying INAS 2007-2008 COBOL files to Work Area #1...
    > Renaming INAS COBOL files in Work Area #1 to PS Standard...
    > Executing COBOL Unicode Conversion on all INAS 2007-2008 COBOL files in Work Area #1...
    Conversion Summary for Source Codes in :
    Source: /opt/pt/inaswk07/
    Target: /opt/pt/inaswk2/
    Number of Copy Libraries Read: 15
    Modified: 15
    Not Modified: 0
    Number of Programs Read: 17
    Modified: 17
    Not Modified: 0
    > All INAS COBOL files converted for Unicode successfully and written
    > to Work Area #2...
    > Renaming INAS COBOL files back to original file names...
    > Copying Converted INAS 2007-2008 COBOL files to COBOL Unicode Source area...
    > All INAS 2007-2008 COBOL files successfully converted and staged.
    INAS Unicode conversion routine ending on Wed Oct 21 16:04:21 CST 2009...
    ./inasbl07.mak : INAS Unicode Conversion step done...
    .cbl not found : Error: File FMCALC07
    I find one answer from metalink, it says: When transferring the INASBL07.cbl file, make sure it is transferred as binary. If you open the file on unix and there is an ^M at the end of the file, the compile will error. However, I copy the file using the command scp from another machine that can compile successfully and I don’t open the file, the error still happed.
    My entironment :
    RedHat4
    weblogic 9.2
    oracle database 10.2.0.1
    peopletools 8.49
    hrms and campus solution 9.0

    i am very glad and appreciate for your help, but i would like to know how to get the value of a radio button.
    like in another JSP file i have :
    <input type="radio" name="type" value="Return" checked>
    Return
    <input type="radio" name="type" value="OneWay">
    One Way
    and when i try to get the value which is checked, i put
    String type = request.getParameter(type.checked);
    but this doesn't work,
    i would be very appreciate for your help. Thank you

  • Error during compiling cobol code after upgrading tuxedo 6.5 with 11

    cc: 1501-238 configuration file /etc/vac.cfg does not exist
    cob64: error(s) in C compilation: BS-c5050.c
    CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o BS-c5050.c -L${TUXDIR}/lib -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread
    We are getting the above mentioned error while trying to run the tuxbuild. The make file is not getting completely executed and the above error is encountered.
    Please help us with this..
    Thanks,
    Shama
    Edited by: user13277723 on Oct 25, 2010 3:21 AM

    Hi Todd/Ed,
    We have one more doubt on which we need your help..
    We are using AIX 6.1,Oracle 11g and all are 64 bit. MFCOBOL which we are using is 32 bit.While compling the code we are switching to 64 bit by using the command cobmode -s 64 and trying to run tuxbuild all+ command and we are encountering the errors which i have metioned in my earlier posts.
    As vac.cfg file was missing we copied older versions as vac.cfg and tried to complie the codes again.we encountered the following error.
    "BS-710b2.c", line 128.10: 1506-296 (S) #include file "mainexit.h" not found.
    cob64: error(s) in C compilation: BS-710b2.c
    so we added a script mainexit.h with cobinit() function declaration in the current directory.
    As we tried with tuxbuild all command we are facing this error.
    ld: 0711-224 WARNING: Duplicate symbol: .tpsvrdone
    ld: 0711-224 WARNING: Duplicate symbol: .tpsvrinit
    ld: 0711-224 WARNING: Duplicate symbol: TPSVRINIT
    ld: 0711-224 WARNING: Duplicate symbol: .TPSVRINIT
    ld: 0711-224 WARNING: Duplicate symbol: tpsvrinit
    ld: 0711-224 WARNING: Duplicate symbol: tpsvrdone
    ld: 0711-224 WARNING: Duplicate symbol: .memcpy
    ld: 0711-224 WARNING: Duplicate symbol: memcpy
    ld: 0711-224 WARNING: Duplicate symbol: .userlog
    ld: 0711-224 WARNING: Duplicate symbol: userlog
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    ld: 0711-317 ERROR: Undefined symbol: .SQLADR
    ld: 0711-317 ERROR: Undefined symbol: .SQLADRVC
    ld: 0711-317 ERROR: Undefined symbol: .SQLBEX
    CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o /BS-eb000.c -L${TUXDIR}/lib TPSVRINIT.o -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread
    we have included this file as well /usr/local/opt/oracle/product/ostl133/precomp/lib/cobsqlintf.o still we are not able to solve this issue..
    Please help us with this.. :-(
    Thanks,
    Shama

  • Error in Running Cobol program in PeopleSoft OVM

    This post is related to [Compiling COBOLs in PSOVM - psrun.mak error - “cob64: can not execute Id”. |http://forums.oracle.com/forums/thread.jspa?threadID=1023864&tstart=0]
    Just creating a new post since I already tagged the previous post as answered.
    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 in the process scheduler 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 ...+
    +./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 ...+
    +./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

    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. See below.
    I think PSOVM is in Unicode but I compiled my COBOL as non unicode. This is because there's no unicode.cfg in $PS_HOME/setup. Can I just create a dummy file unicode.cfg so that pscbl.mak will compile the COBOL as unicode?
    Is there workaround on this? Thanks.
    DB Type:[ORACLE | DB2ODBC | INFORMIX |
             DB2400 | DB2UNIX | SYBASE |
             MICROSFT]:ORACLE
    Database:[HCM91   ]:HCM91
    Username:[PS                            ]:PS
    Password:[********]:
    Run Control ID[        ]: hcm91
    Process Instance:[0]:830
    SQL Trace:[0]:
    DB Flag:[0]:0
    Application Program Failed
    Action Type : SQL CONNEC
    In Pgm Section : SQLRT:GG100 SQL-CONNECT
    With Return Code: 09977
    Error Message : SQLRT: Attempting to use Ansi API for a Unicode DB
    Application Program Failed
    In Pgm Section : GPPDPRUN: BD000-CONNECT-TO-DBMS
    With Return Code: 09977
    Error Message : SQLRT: Attempting to use Ansi API for a Unicode DB
    PTPSQLRT - Error Encountered
    No longer have connection to DB due to an error from previous
    action: SQL CONNEC. Bypassing current action: SQL SELECT.
    Terminating Program.

  • FSCM 9.0: COBOL program does not post a Journal into Ledger correctly

    Folks,
    Hello. I am working on FSCM 9.0 General Ledger module. To FSCM 9.0, we need to compile COBOL by ourself.
    I downlaod and install "MS Visual Studio 2005 professional" and "Micro Focus Net Express 5.0". Then compile COBOL successfully. The executable files are copied to PS_HOME\CBLBINU.
    Editing Journal is working correctly as follows:
    General Ledger > Journal > Creare/Update Journal -> Add -> Line -> Edit Journal ->Process, Total amount comes up correctly and Journal status becomes "V". All debit accounts and Credit accounts are posted into Database PS_JRNL_LN table correctly.
    But posting Journal is not working correctly as follows:
    In Journal Line page, after select Post Journal -> Process, Journal status becomes "P". But when check Database table PS_Ledger using select * from PS_LEDGER, only Debit accounts of a journal are posted into PS_LEDGER table, all Credit accounts of a journal are not posted into PS_LEDGER.
    Because posting a journal into PS_LEDGER table only debit accounts and no credit accounts, all general reports, such as Trial balance, cannot be generated.
    Thus, my questions are:
    First, does COBOL program GLPPPOST.exe have a problem ? If yes, how to solve it ?
    Second, do I set up something incorrectly in General Ledger module and cause only Debit accounts of a journal are posted into PS_LEDGER table and not Credit accounts ?
    Thanks.

    Folks,
    Hello. The question is solved by myself. Thanks.

  • How to recompile the COBOL files?

    Hi All,
    Can any one provide documentation for how to recompile the COBOL files by using Net Express 5.1 in command prompt?
    Thanks in advance.
    Thanks & Regards,
    Siva Prasad B

    1. Set up two environment variables, PS_HOME and COBROOT, on the machine from which you'll compile COBOL. (This should be either your file server or a machine that has access to your file server.) You can do this from a DOS command prompt window.
    set PS_HOME=C:\hr840
    set COBROOT=c:\netexpress\base
    2. Open a DOS command prompt window if you do not have one open already, and change directories to
    <PS_HOME>\Setup.
    3. Execute CBLBLD.BAT as follows
    cblbld <compile drive> <compile directory>
    where <compile drive> is the drive where the compile takes place, <compile directory> is the temp
    directory where the compile takes place
    The CBLBLD.BAT file will create the compile directory for you if it does not already exist.
    Note. Make sure to include a space between the <compile drive> and <compile directory> parameters; they are treated as two different parameters within the CBLBLD.BAT batch program. Also ensure that you have write permission to <compile drive> and <compile directory> as the compile process will take place there.
    For example, the following command will take the COBOL source from <PS_HOME>\src\cbl and do the compile process under c:\temp\compile:
    cblbld c: \temp\compile
    Make note of the information that is displayed on the screen while the process is running; it provides the locations of important files that you will need to examine.

  • COBOL and Java

    Hello to everybody.
    My problem consist in calling a compiled COBOL module from a Java servlet/program. In Windows I know I usually use the NetExpress library for doing it, but now I have to move in a UNIX environment... Does someone know how to do it inside a LINUX/UNIX environment ?
    Thank you very much in advance for your help

    And you are going to move the cobol code to the unix box and recompile right? That is the only way the cobol will run on unix.
    Java does not talk to cobol.
    Java does however do JNI. That allows java to call a C method. C code can do many things. Like talk to interfaces which talk to cobol. I have no idea how to do that.
    You might also check the vendor of the cobol that you are running. They might have a java interface. (It will still be JNI but at least you won't have to write it.)
    Alternatively if the cobol will remain on the windows box then that is an entirely different story.

  • Cobol on OEL 5

    Hello,
    I have got a specific requirement of running a COBOL code on EL5. Not sure if GCC includes the compiler for COBOL.
    Currently what I can think of installing openCOBOL in EL5 server and hand it over to developers.
    From what I think need to do is, compile COBOL code using openCOBOL which will give "C" compatible code. Then GCC will take care.
    Please let me know, if there is any specific solution for retrofitting legacy softwares/code in OEL.
    Thanks & Regards,
    Nirav Kamdar

    Fahd Mirza wrote:
    And I remember the Y2K frenzy and its relation with the Cobol.
    regardsWhich really had nothing at all to do with cobol. It had to do with how systems had been designed to store and deal with dates. It was perceived as a "cobol problem" simply because most of the code in use was in cobol. Nobody mentions that most of the remediation was was also in cobol - which puts the lie to the assertion that it was a cobol issue to start with. Dates were generally stored in fields defined as PIC 9(6), only allowing for 2 digits for the year. There was nothing about cobol that prevented storing a date in a PIC 9(8) field to preserve the century component as well. It just wasn't common practice because at the time the systems were designed, storage was expensive. The lesson for systems designers is that code changes all the time but data structures live nearly forever, so one must design the data with very long time windows in mind.
    I had an interesting discussion a few months ago with a young programmer who expressed the opinion that the Y2K scare was just a big to-do over nothing. His evidence was that nothing really seemed to happen. (he was in junior high at the time) I informed him that while there had been some wild claims, the problem was very real and that the reason nothing seemed to happen was because armies of programmers like myself spent two years working to make sure that was the case.

  • MicroFocus Netexpress Cobol on Windows 7

    I have a windows 7 professional and I've installed PS 9.1/PT 8.50 on it;
    Trying to install MicroFocus Net Express Cobol (5.1 ot 5.0) on Windows 7..
    I am unable to complete it, as it says it is needs a prereq of windows xp SP1 or later or windows 2000 sp4 or later etc
    Wondering to see if anyone got past through this message or have a workaround?
    thanks

    To compile COBOL you need a compiler (duh ;)) which is Micro Focus Net Express 5.1 for CC&B.
    You can find the required downloads on http://edelivery.oracle.com
    Install both Micro Focus Net Express 5.1 and the Wrappack.
    Keep in mind it is highly recommended to develop new customizations in Java instead of COBOL.

  • ACU COBOL과 ORACLE INTERFACE

    제품 : PRECOMPILERS
    작성날짜 : 1997-06-25
    ACU COBOL과 ORACLE INTERFACE
    ============================
    Machine : Sequent, HP, Pyramid, Ticom등
    o Development
    ACUCOBOL과 ORACLE 7을 interface하기위한 module을 만들기 위해 먼저
    "direct.c"에 31가지의 기능을 등록한다.
    Makefile은 "proc.mk"이며, 이를 이용하여 interface용 runtime을 만든다.
    interface module은 구분을 위하여 "rtsora"로 rename되어 있으며 "runcbl"로
    해도 상관 없다.
    o Testing
    test는 Oracle directory의 "procob/demo"를 이용 test하였다.
    8개의 test programs이 compile되었고, "rtsora"라는 runtime으로 실행된다.
    Pre-compile및 compile, 그리고 실행순서
    1) Pre-compile :
    procob iname=samplecob.pco oname=samplecob.cob ireclen=132 oreclen=132
    select_error=no
    혹은 make -f procob.mk samplecob
    2) Compile : "-da4" option을 사용하는 이유는 interface하는 data간의 size를
    ( align data )맞추어 주기 위해 사용된다.
    기타 option들은 그대로 사용 가능하다.
    ccbl -da4 -o samplecob.obj samplecob.cob
    3) 실행
    rtsora samplecob.obj
    cf.
    * Direct.C부분은 Oracle RDBMS와 함께 통신에 사용되는 응용프로그램을 31개의
    Oracle 기능을 지원하기 위해 수정되었다.
    makefile인 procob.mk와는 별도로 Makefile이라는 화일을 만들어 사용하였다.
    * Oracle의 PRO*COBOL 혹은 PRO*C가 제공하는 모든 Archieve들이 새로운
    runtime을 만들기 위해 필요하다.
    * Acucobol의 ccbl로 pre-compile된 source를 compile할 경우 주의할 사항은
    pre-compiler가 현재는 MF-COBOL용으로 set되어 있기 때문에 compile시 문법상
    errorr가 발생할 수 있다. 그러나 이는 간단한 source editing으로 해결된다.
    수정될 사항 :
    1) accept구문에서 comp로 선언된 변수를 accept받는다.
    2) Pre-compile된 cobol source문장내에서 01 level 의 변수값들이
    A area가 아닌 B area에 위치한다.
    3) Procedure Division구문에서 GIVING구는 지원하지 않는다.
    Acucobol-85의 Procedure Division구문의 Syntax
    Procedure Division
    [ {USING } {parameter1 . . . . } .
    {CHAINING }
    * interface module인 "rtsora"를 만들기 위한 Makefile기술
    1)Makefile의 내용 ( Makefile )
    # Makefile to create new version of "rtsora" based on
    # changes to "sub.c"
    CFLAGS= -O
    LDFLAGS= -I. -O -s
    SUBS=sub.o filetbl.o
    LIBS=-L/ORACLE_HOME $ORACLE_HOME/lib/libsql.a \
    $ORACLE_HOME/lib/osntab.o $ORACLE_HOME/lib/libsqlnet.a \
    $ORACLE_HOME/lib/libora.a -lnls6 -lcv6 -lsqlnet \
    $ORACLE_HOME/lib/libora.a -lcore \
    `cat $ORACLE_HOME/rdbms/lib/sysliblist `
    rtsora: $(SUBS)
    cc $(LDFLAGS) -o rtsora $(SUBS) runcbl.a $(LIBS)
    sub.o: sub.c sub85.c config85.c direct.c
    cc $(CFLAGS) -c sub.c
    # 기종별로 LIBS에 추가되는 Option과 Archieve화일들은 조금씩 다를 수 있다.
    상기에서 LIBS에 추가되는 ORACLE의 Archieve들과 Option들은 procob.mk
    혹은 proc.mk화일내에 있는 내용들을 참조하면 된다.
    /* DIRECT.C for ORACLE 7 & ACUCOBOL Interface용*/
    struct EXTRNTABLE WNEAR EXTDATA[] = {
    { NULL,              NULL }
    /* ORACLE Function등록 */
    #define VOID void
    #include "$ORACLE_HOME/proc/lib/SQLDA.H"
    typedef unsigned int size_t;
    extern VOID sqlab1();
    extern VOID sqladr();
    extern VOID sqlad1();
    extern SQLDA *sqlald();
    extern VOID sqlbs1();
    extern VOID sqlbex();
    extern VOID sqlcls();
    extern VOID sqlcom();
    extern VOID sqlexe();
    extern VOID sqlfcc();
    extern VOID sqlfch();
    extern VOID sqlgb1();
    extern VOID sqlgd1();
    extern VOID sqllo1();
    extern VOID sqllda();
    extern size_t sqllen();
    extern VOID sqloca();
    extern VOID sqlopn();
    extern VOID sqlora();
    extern VOID sqlos1();
    extern VOID sqlosq();
    extern VOID sqlpcs();
    extern VOID sqlrol();
    extern VOID sqlsca();
    extern VOID sqlscc();
    extern VOID sqlsch();
    extern VOID sqlsqs();
    extern VOID sqltfl();
    extern VOID sqltoc();
    extern VOID sqlwnr();
    extern VOID sqlgri();
    struct DIRECTTABLE LIBDIRECT[] = {
    { "SQLAB1",FUNC sqlab1,C_void },
    { "SQLADR",FUNC sqladr,C_void },
    { "SQLAD1",FUNC sqlad1,C_void },
    { "SQLALD",FUNC sqlald,C_pointer },
    { "SQLBS1",FUNC sqlbs1,C_void },
    { "SQLBEX",FUNC sqlbex,C_void },
    { "SQLCLS",FUNC sqlcls,C_void },
    { "SQLCOM",FUNC sqlcom,C_void },
    { "SQLEXE",FUNC sqlexe,C_void },
    { "SQLFCC",FUNC sqlfcc,C_void },
    { "SQLFCH",FUNC sqlfch,C_void },
    { "SQLGB1",FUNC sqlgb1,C_void },
    { "SQLGD1",FUNC sqlgd1,C_void },
    { "SQLLO1",FUNC sqllo1,C_void },
    { "SQLLDA",FUNC sqllda,C_void },
    { "SQLLEN",FUNC sqllen,C_unsigned },
    { "SQLOCA",FUNC sqloca,C_void },
    { "SQLOPN",FUNC sqlopn,C_void },
    { "SQLORA",FUNC sqlora,C_void },
    { "SQLOS1",FUNC sqlos1,C_void },
    { "SQLOSQ",FUNC sqlosq,C_void },
    { "SQLPCS",FUNC sqlpcs,C_void },
    { "SQLROL",FUNC sqlrol,C_void },
    { "SQLSCA",FUNC sqlsca,C_void },
    { "SQLSCC",FUNC sqlscc,C_void },
    { "SQLSCH",FUNC sqlsch,C_void },
    { "SQLSQS",FUNC sqlsqs,C_void },
    { "SQLTFL",FUNC sqltfl,C_void },
    { "SQLTOC",FUNC sqltoc,C_void },
    { "SQLWNR",FUNC sqlwnr,C_void },
    { "SQLGRI",FUNC sqlgri,C_void },
    { NULL, NULL, 0 }
    /* */

    There are standard interface programs between standard modules, AP to GL, AR to GL and the likes. We write them when we need the transfer data customized or if data is being transfered from a non Oracle sub-ledger into Oracle.

  • COBOL license

    Hello,
    I am currently looking into installing MicroFocus Server Express for my PeopleSoft FCM 9.1 demo installation running on OEL 5.5 (and HCM OVM templates down the line). However I am unsure about the licensing steps involved. I know there is an open 30day license available for the COBOL compiler, but what are the impacts on my system once this license expires? Once the compiler has an expired license, will all running COBOL programs inside PeopleSoft fail? Also does having this 30 day license mean I can run the COBOL programs inside PeopleSoft, or does it only provide me with compile capabilities and there is a separate runtime license?
    I am aware there is a runtime unlimited license patch (ULP) that can be obtained from Oracle on request, I would presume I need this patch installed once the compiler license expired to be able to continue running COBOL components (or preferably from the initial installation if the compiler license doesn't cover runtime), is that correct? Also if someone could provide details about licensing this patch besides that fact that I should contact Oracle via e-mail with my credentials, like if I need a licensed PeopleSoft installation (not just the demo test environment).
    I apologize for being thick, but this is all very new to me and I had no luck searching for answers on My Oracle Support.
    Thank you for input,
    Honza

    There's some more documtation on edelivery.oracle.com
    Under PeopleSoft Enterprise you can find: Third Party – Micro Focus 5.1 for PeopleSoft Enterprise Media Pack.
    -- From "PeopleSoft Enterprise COBOL Quick Reference Guide - Version 9":
    Temporary License Codes
    These temporary license codes are active for up to 30 days while you request a full license. If the temporary license is not converted within the 30-day temporary license period, you cannot compile+ or run+* COBOL programs.
    -- From "Micro Focus Server Express 5.1 Wrap Pack 4 Extras Install Documentation for PeopleSoft and Runtime Licenses"
    Server Express Development Licenses - COBOL Compiler Licenses
    When you order Server Express from PeopleSoft, you also order a certain
    number of COBOL Compiler Licenses. The COBOL Compiler Licenses are sold
    in quantities of 1, 2, 3, 5, 12 and 25. These COBOL Compiler Licenses
    are commonly referred to as PACKS or SEATS.
    For example:
    If you have 5 developers that will be working on COBOL you would
    purchase a 5-SEAT COBOL Compiler License. This 5-SEAT COBOL
    Compiler License allows 5 developers to simultaneously compile COBOL
    programs. If a 6th developer attempt to compile they would get an
    error message indicating that there are no Compiler Licenses available.
    Each SEAT of COBOL Compiler License comes with 5 COBOL Run-Time licenses.
    For example:
    A 1-SEAT COBOL Compiler License will allow 5 COBOL programs to be
    run simultaneously. A 5-SEAT COBOL Compiler License will allow 25 COBOL
    programs to be run simultaneously, and so on.
    When the COBOL Compiler License is installed, the installation process
    will automatically install the COBOL Run-Time Licenses.
    ULP - COBOL Run-Time Licenses
    The Unlimited License Patch (ULP) provides PeopleSoft Customers with 5000 COBOL Run-Time licenses.
    For Server Express 5.1 WP4 and 5.0 WP4 the Unlimited License Patch (ULP) MUST be installed prior to installing the COBOL Compiler License.
    This issue with ULP has existed since Server Express 4.0.
    For Server Express 5.1 WP4 it is STILL a requirement that the ULP Run-Time Licenses are installed prior to the Development Licenses.
    So I guess you can compile and run Cobol for 30 days. After that you need at least a one-seat compile license and the ULP.
    Regards,
    Bauke

  • About the template FSCM9.1 FP2 Peopletools 8.52.03 (v4 - July 2012)

    Hello,
    Just tested quickly this new template delivered 2 months ago (July 2012).
    As far as I undestand, it is just a recut of the one delivered in April 2012. At least it solves the main issue I reported in that other About the template FSCM9.1 FP2 Peopletools 8.52.03 (v3) about the network prompt missing.
    But I still have remarks/issues on the template FSCM9.1 FP2 Peopletools 8.52.03 (v4) released earlier in July 2012.
    _1. First of all, there a lot of errors reported in /var/log/messages_
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526918.883:3): avc:  denied  { read } for  pid=92 comm="restorecon" name="libc.so.6" dev=xvda2 ino=21 scontext=system_u:sys
    tem_r:restorecon_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=lnk_file
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526918.910:4): avc:  denied  { execute } for  pid=92 comm="restorecon" path="/lib64/libc-2.5.so" dev=xvda2 ino=20 scontext=
    system_u:system_r:restorecon_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526921.489:5): avc:  denied  { read } for  pid=296 comm="pam_console_app" name="ld.so.cache" dev=xvda2 ino=94143 scontext=s
    ystem_u:system_r:pam_console_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526921.489:6): avc:  denied  { getattr } for  pid=290 comm="pam_console_app" path="/etc/ld.so.cache" dev=xvda2 ino=94143 sc
    ontext=system_u:system_r:pam_console_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526921.530:7): avc:  denied  { read } for  pid=293 comm="pam_console_app" name="libc.so.6" dev=xvda2 ino=21 scontext=system
    _u:system_r:pam_console_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=lnk_file
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526921.530:8): avc:  denied  { execute } for  pid=293 comm="pam_console_app" path="/lib64/libc-2.5.so" dev=xvda2 ino=20 sco
    ntext=system_u:system_r:pam_console_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file
    Sep 13 05:02:55 localhost kernel: input: PC Speaker as /class/input/input3
    Sep 13 05:02:55 localhost kernel: Initialising Xen virtual ethernet driver.
    Sep 13 05:02:55 localhost kernel: Error: Driver 'pcspkr' is already registered, aborting...
    Sep 13 05:02:55 localhost kernel: Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is unknown type 15 (usb?)
    Sep 13 05:02:55 localhost kernel: floppy0: Unable to grab IRQ6 for the floppy driver
    Sep 13 05:02:55 localhost kernel: lp: driver loaded but no devices found
    Sep 13 05:02:55 localhost kernel: md: Autodetecting RAID arrays.
    Sep 13 05:02:55 localhost kernel: md: Scanned 0 and added 0 devices.
    Sep 13 05:02:55 localhost kernel: md: autorun ...
    Sep 13 05:02:55 localhost kernel: md: ... autorun DONE.
    Sep 13 05:02:55 localhost kernel: EXT3 FS on xvda2, internal journal
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526929.896:9): avc:  denied  { execute } for  pid=965 comm="restorecon" path="/lib64/libc-2.5.so" dev=xvda2 ino=20 scontext
    =system_u:system_r:restorecon_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file
    Sep 13 05:02:55 localhost kernel: kjournald starting.  Commit interval 5 seconds
    Sep 13 05:02:55 localhost kernel: EXT3 FS on xvda1, internal journal
    Sep 13 05:02:55 localhost kernel: EXT3-fs: mounted filesystem with ordered data mode.
    Sep 13 05:02:55 localhost kernel: kjournald starting.  Commit interval 5 seconds
    Sep 13 05:02:55 localhost kernel: EXT3 FS on xvdb1, internal journal
    Sep 13 05:02:55 localhost kernel: EXT3-fs: mounted filesystem with ordered data mode.
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526930.647:10): avc:  denied  { execute } for  pid=989 comm="setfiles" path="/lib64/libc-2.5.so" dev=xvda2 ino=20 scontext=
    system_u:system_r:setfiles_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526942.398:11): avc:  denied  { net_admin } for  pid=990 comm="setfiles" capability=12  scontext=system_u:system_r:setfiles
    _t:s0 tcontext=system_u:system_r:setfiles_t:s0 tclass=capability
    Sep 13 05:02:55 localhost kernel: hrtimer: interrupt took 35229469 ns
    Sep 13 05:02:55 localhost kernel: Adding 2104504k swap on /dev/xvda3.  Priority:-1 extents:1 across:2104504k SS
    Sep 13 05:02:55 localhost kernel: warning: process `kudzu' used the deprecated sysctl system call with 1.23.
    Sep 13 05:02:55 localhost kernel: Loading iSCSI transport class v2.0-870.
    Sep 13 05:02:55 localhost kernel: libcxgbi:libcxgbi_init_module: tag itt 0x1fff, 13 bits, age 0xf, 4 bits.
    Sep 13 05:02:55 localhost kernel: libcxgbi:ddp_setup_host_page_size: system PAGE 4096, ddp idx 0.
    Sep 13 05:02:55 localhost kernel: Chelsio T3 iSCSI Driver cxgb3i v2.0.0 (Jun. 2010)
    Sep 13 05:02:55 localhost kernel: iscsi: registered transport (cxgb3i)
    Sep 13 05:02:55 localhost kernel: NET: Registered protocol family 10
    Sep 13 05:02:55 localhost kernel: cnic: Broadcom NetXtreme II CNIC Driver cnic v2.2.14 (Mar 30, 2011)
    Sep 13 05:02:55 localhost kernel: Broadcom NetXtreme II iSCSI Driver bnx2i v2.6.2.3 (Jan 06, 2010)
    Sep 13 05:02:55 localhost kernel: iscsi: registered transport (bnx2i)
    Sep 13 05:02:55 localhost kernel: iscsi: registered transport (tcp)
    Sep 13 05:02:55 localhost kernel: iscsi: registered transport (iser)
    Sep 13 05:02:55 localhost kernel: iscsi: registered transport (be2iscsi)
    Sep 13 05:02:55 localhost kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
    Sep 13 05:02:55 localhost kernel: warning: `mcstransd' uses 32-bit capabilities (legacy support in use)
    Sep 13 05:02:55 localhost kernel: type=1400 audit(1347526970.336:12): avc:  denied  { sys_tty_config } for  pid=1374 comm="consoletype" capability=26  scontext=system_u:system_r
    :consoletype_t:s0 tcontext=system_u:system_r:consoletype_t:s0 tclass=capability
    Sep 13 05:02:55 localhost kernel: RPC: Registered udp transport module.
    Sep 13 05:02:55 localhost kernel: RPC: Registered tcp transport module.
    Sep 13 05:02:55 localhost kernel: RPC: Registered tcp NFSv4.1 backchannel transport module.
    Sep 13 05:03:00 localhost automount[1769]: lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master
    Sep 13 05:03:59 localhost kernel: type=1400 audit(1347527039.771:13): avc:  denied  { sys_tty_config } for  pid=2029 comm="consoletype" capability=26  scontext=system_u:system_r
    :consoletype_t:s0 tcontext=system_u:system_r:consoletype_t:s0 tclass=capability
    Sep 13 05:04:00 localhost NET[2061]: /sbin/dhclient-script : updated /etc/resolv.conf
    Sep 13 05:04:01 localhost kernel: IPv6 over IPv4 tunneling driver
    Sep 13 05:04:01 localhost NET[2219]: /opt/oracle/psft/vm/oraclevm-template.sh : updated /etc/resolv.conf
    Sep 13 05:04:08 localhost NET[2472]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf
    Sep 13 05:06:08 localhost restorecond: Reset file context /etc/resolv.conf: system_u:object_r:etc_runtime_t:s0->system_u:object_r:net_conf_t:s0
    Sep 13 05:08:19 localhost kernel: Slow work thread pool: Starting up
    Sep 13 05:08:19 localhost kernel: Slow work thread pool: Ready
    Sep 13 05:08:19 localhost kernel: FS-Cache: Loaded
    Sep 13 05:08:19 localhost kernel: FS-Cache: Netfs 'nfs' registered for caching
    Sep 13 05:08:19 localhost kernel: svc: failed to register lockdv1 RPC service (errno 97).
    ...Well, I don't know if it triggers others problems yet, but the last line could reveale an error within the /etc/hosts file which has not been properly modified during deployment (especially IPV6, it probably should be removed) :
    [root@psovmfscmfp2 /]# more /etc/hosts
    127.0.0.1       localhost.localdomain   localhost
    ::1     localhost6.localdomain6 localhost6
    192.168.1.150   psovmfscmfp2.phoenix.nga psovmfscmfp2
    [root@psovmfscmfp2 /]#_2. Now about the COBOL_
    Despite I choosed to install Microfocus, COBOL does not work. Sample COBOL processes such as PTPDBTST and PTPDTTST finished in error.
    The log is empty, here below the output from the file $PS_CFG_HOME/psft/pt/8.52/appserv/prcs/PRCSDOM/LOGS/stdout (psadm2) :
    =================================Error===============================
    Message:     Process 10899 is marked 'Initiated' or 'Processing' but can not detect status of PID
            Process Name: PTPDBTST
            Process Type: COBOL SQL
            Session Id:   9313
    =====================================================================
    OprId = VP1Note that I successfully tested AEs and SQRs.
    Here is the command line fired that I can see from the process monitor > parameter (nga is being my run control id) :
    PSRUN PTPDBTST ORACLE/F91TMPLT/VP1/OPRPSWD/nga/10899//0 I used the following trace setting on the PTPDBTST's process parameter (override) to see what happens :
    %%DBTYPE%%/%%DBNAME%%/%%OPRID%%/%%OPRPSWD%%/%%RUNCNTLID%%/%%INSTANCE%%//%%DBFLAG%%But it does not generate more logs...
    I also use "RCCBL Redirect =1" in psappsrv.cfg (reconfigure and restart appdom), then start the COBOL through menu PeopleTools > Utilities > Debug > PeopleTools Test Utilities, and run a "Remote Call Test".
    I received "COBOL Program PTPNTEST aborted (2,-1) FUNCLIB_UTIL.RC_TEST_PB.FieldChange PCPC:2143 Statement:26", but it generated two empty files (PTPNTEST_VP1_0913064910.out and PTPNTEST_VP1_0913064910.err).
    Next step, checking the folder $PS_HOME/cblbin, it is...er... empty... does this mean COBOL have not been compiled ? Hmmm, I'm pretty sure I replied 'yes' when it was prompted though (still have the screenshots)...
    And we can see several folders dated from today and license seems ok from Microfocus directories :
    [psadm1@psovmfscmfp2 tools]$ cd /opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit
    [psadm1@psovmfscmfp2 svrexp-51_wp4-64bit]$ ls -lrt
    total 264
    -r--r--r--  1 root root 10455 Nov 19  2009 ADISCTRL
    dr-xr-xr-x 10 root root  4096 Nov 19  2009 terminfo
    dr-xr-xr-x  2 root root  4096 Nov 19  2009 xdb
    -r--r--r--  1 root root 11949 Nov 19  2009 eslmf-mess
    dr-xr-xr-x  2 root root  4096 Nov 19  2009 include
    dr-xr-xr-x 17 root root  4096 Nov 19  2009 lang
    dr-xr-xr-x  4 root root  4096 Nov 19  2009 es
    dr-xr-xr-x  2 root root  4096 Nov 19  2009 dynload
    drwxrwxrwx  2 root root  4096 Nov 19  2009 deploy
    dr-xr-xr-x  2 root root  4096 Nov 19  2009 dynload64
    dr-xr-xr-x  2 root root  4096 Nov 19  2009 dialog
    dr-xr-xr-x  2 root root  4096 Nov 19  2009 cpylib
    dr-xr-xr-x  8 root root 28672 Nov 19  2009 lib
    dr-xr-xr-x  3 root root  4096 Nov 19  2009 snmp
    dr-xr-xr-x  8 root root  4096 Nov 19  2009 src
    dr-xr-xr-x 28 root root  4096 Nov 19  2009 demo
    dr-xr-xr-x  6 root root  4096 Nov 19  2009 docs
    -rw-r--r--  1 root root    49 Sep 13 05:13 license.txt
    -r-xr-xr-x  1 root root 12719 Sep 13 05:13 install.orig
    -r-xr-xr-x  1 root root 13006 Sep 13 05:13 install
    dr-xr-xr-x  6 root root  4096 Sep 13 05:13 lmf
    dr-xr-xr-x  2 root root  4096 Sep 13 05:13 aslmf
    dr-xr-xr-x  6 root root  4096 Sep 13 05:15 etc
    dr-xr-xr-x  4 root root 12288 Sep 13 05:15 bin
    [psadm1@psovmfscmfp2 svrexp-51_wp4-64bit]$ more license.txt
    I
    ORACLE-30DAYDEV64
    01030 A0780 014A6 7980B A17CSo let's assume it has been properly installed and let's compile the COBOLs. Here we go :
    [psadm1@psovmfscmfp2 svrexp-51_wp4-64bit]$ cd $PS_HOME/setup
    [psadm1@psovmfscmfp2 setup]$ ./pscbl.mak
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.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: 71
                         Modified:       71
                     Not Modified:       0
          Number of Programs Read:       44
                         Modified:       44
                     Not Modified:       0
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : All COBOL files were converted for Unicode successfully
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : Compiling PTPCBLAE.cbl ...
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak: line 249: cob: command not found
    cp: cannot stat `PTPCBLAE.gnt': No such file or directory
    cp: cannot stat `PTPCBLAE.int': No such file or directory
    cp: cannot stat `PTPCBLAE.lst': No such file or directory
    ...What about env. variables ? COBDIR, COBPATH and COBOL do not appears anywhere in PATH...
    [psadm1@psovmfscmfp2 setup]$ env|grep -i cobol
    [psadm1@psovmfscmfp2 setup]$Let's set the env variables as we could expect to be (page 27, step 17 of the given doc), and retry to compile the COBOL :
    [psadm1@psovmfscmfp2 setup]$ export COBDIR=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit
    [psadm1@psovmfscmfp2 setup]$ export LD_LIBRARY_PATH=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit/lib:$LD_LIBRARY_PATH
    [psadm1@psovmfscmfp2 setup]$ export PATH=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit/bin:$PATH
    [psadm1@psovmfscmfp2 setup]$ ./pscbl.mak
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.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: 71
                         Modified:       71
                     Not Modified:       0
          Number of Programs Read:       44
                         Modified:       44
                     Not Modified:       0
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : All COBOL files were converted for Unicode successfully
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : Compiling PTPCBLAE.cbl ...
    Micro Focus LMF - 010: Unable to contact license manager.                                                                                                                              This product has been unable to contact the                                     License Manager.                                                                                                                                                Execution of this product has been terminated.                                                                                                                  This product cannot execute without the License                                 Manager. Contact your license administrator                                     or refer to the 'Information Messages' chapter                                  of the License Management Facility                                              Administrator's Guide.
    cob64: error(s) in compilation: PTPCBLAE.cbl
    cp: cannot stat `PTPCBLAE.gnt': No such file or directory
    cp: cannot stat `PTPCBLAE.int': No such file or directory
    cp: cannot stat `PTPCBLAE.lst': No such file or directory
    ...Ok, maybe a bit better, at least it is trying to contact LMF. Probably the LMF is not started. Let's try to start it :
    [root@psovmfscmfp2 microfocus]# ./mflmman
    MF-LMF:Thu Sep 13 07:19:37 2012: LMF Starting
    [root@psovmfscmfp2 microfocus]#Good, it is starting, it means it wasn't (sic). Now retry to compile :
    [psadm1@psovmfscmfp2 setup]$ export COBDIR=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit
    [psadm1@psovmfscmfp2 setup]$ export LD_LIBRARY_PATH=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit/lib:$LD_LIBRARY_PATH
    [psadm1@psovmfscmfp2 setup]$ export PATH=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit/bin:$PATH
    [psadm1@psovmfscmfp2 setup]$ ./pscbl.mak
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.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: 71
                         Modified:       71
                     Not Modified:       0
          Number of Programs Read:       44
                         Modified:       44
                     Not Modified:       0
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : All COBOL files were converted for Unicode successfully
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : Compiling PTPCBLAE.cbl ...
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : Compiling PTPCURND.cbl ...
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : Compiling PTPDBTST.cbl ...
    <snipped>
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : Compiling PTPWLGEN.cbl ...
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : All COBOL programs have been successfully compiled.
    /opt/oracle/psft/pt/tools/setup/pscbl_mf.mak : The COBOL executables were copied to /opt/oracle/psft/pt/tools/cblbin
    rm: cannot remove `/opt/oracle/psft/pt/apptools/src/cblunicode/CECCRLP1.cbl': Permission denied
    rm: cannot remove `/opt/oracle/psft/pt/apptools/src/cblunicode/CECCRLUP.cbl': Permission deniedIt looks better, I think the last lines marked with "Permission denied" can be safely be ignored.
    Those files are owned by psadm3 with a read only for other users (sic). But more concern, I'm wondering why it looks into apptools (???) whereas I'm using psadm1 (tools only, COBPATH=/opt/oracle/psft/pt/tools/cblbin).
    Anyway, seems the *.gnt files required to run the COBOLs programs are now in bin :
    [psadm1@psovmfscmfp2 setup]$ ls /opt/oracle/psft/pt/tools/cblbin
    PTPCBLAE.gnt  PTPDTTST.gnt  PTPECOBL.gnt  PTPLOGMS.gnt  PTPRATES.gnt  PTPSQLGS.gnt  PTPTESTU.gnt  PTPTSCNT.gnt  PTPTSLOG.gnt  PTPTSTBL.gnt  PTPTSWHR.gnt
    PTPCURND.gnt  PTPDTWRK.gnt  PTPEFCNV.gnt  PTPMETAS.gnt  PTPRUNID.gnt  PTPSQLRT.gnt  PTPTESTV.gnt  PTPTSEDS.gnt  PTPTSREQ.gnt  PTPTSUPD.gnt  PTPUPPER.gnt
    PTPDBTST.gnt  PTPDYSQL.gnt  PTPERCUR.gnt  PTPNETRT.gnt  PTPSETAD.gnt  PTPSTRFN.gnt  PTPTFLDW.gnt  PTPTSEDT.gnt  PTPTSSET.gnt  PTPTSUSE.gnt  PTPUSTAT.gnt
    PTPDEC31.gnt  PTPECACH.gnt  PTPESLCT.gnt  PTPNTEST.gnt  PTPSHARE.gnt  PTPTEDIT.gnt  PTPTLREC.gnt  PTPTSFLD.gnt  PTPTSTAE.gnt  PTPTSWHE.gnt  PTPWLGEN.gnt
    [psadm1@psovmfscmfp2 setup]$Have a try to link COBOLs :
    [psadm1@psovmfscmfp2 setup]$ ./psrun.mak
    ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.32-200.13.1.el5uek ...
    ./psrun.mak - Successfully created PSRUN in directory: /opt/oracle/psft/pt/tools/bin
    ./psrun.mak - linking PSRUNRMT for oel-5-x86_64, Version 2.6.32-200.13.1.el5uek ...
    ./psrun.mak - Successfully created PSRUNRMT in directory: /opt/oracle/psft/pt/tools/bin
    [psadm1@psovmfscmfp2 setup]$The err files are empty :
    -rw-r--r-- 1 psadm1 oracle     0 Sep 13 07:26 psrun.err
    -rw-r--r-- 1 psadm1 oracle     0 Sep 13 07:26 psrunrmt.errSo far, so good now. We are able to test again the sample COBOL... until next failure.
    Yes, unfortunately, it fails again. But good thing, the log is not empty now :
    PSRUN: error while loading shared libraries: libcobrts64.so: cannot open shared object file: No such file or directoryThat's probably coming from some missing libraries during the psprcs.cfg configuration. Let's use the same env. variables settings as for psadm1 when compiling COBOLs.
    [psadm2@psovmfscmfp2 appserv]$ export COBDIR=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit
    [psadm2@psovmfscmfp2 appserv]$ export LD_LIBRARY_PATH=$COBDIR/lib:$LD_LIBRARY_PATH
    [psadm2@psovmfscmfp2 appserv]$ export PATH=$COBDIR/bin:$PATH
    [psadm2@psovmfscmfp2 appserv]$ ./psadminReconfigure, restart prcs and re-test... SUCCESSFULLY !!!!!!!!!!!!!!!!!!!!!!!!!
    Log from PTPDBTST process shows :
    SUCCESSFUL DATABASE CONNECTION
    SUCCESSFUL DATABASE DISCONNECTWhat a pain !
    I did not go further, but we could expect the same issue within the Application COBOLs, since the cblbin directory is also empty out there.
    According to psprcs.env, there're two values for COBDIR and the one for the applications cobol is empty :
    [psadm2@psovmfscmfp2 PRCSDOM]$ more psprcsrv.env
    INFORMIXSERVER=192.168.1.149
    COBPATH=/opt/oracle/psft/pt/apptools/cblbin:/opt/oracle/psft/pt/tools/cblbin
    PATH=/opt/oracle/psft/pt/apptools/bin:/opt/oracle/psft/pt/apptools/bin/interfacedrivers::/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit/bin:/opt/oracle/psft/pt/tools/appserv:/opt
    /oracle/psft/pt/tools/setup:/opt/oracle/psft/pt/tools/jre/bin:/opt/oracle/psft/pt/bea/tuxedo/bin:.:/opt/oracle/psft/pt/oracle-client/11.2.0.x/bin:/opt/oracle/psft/pt/oracle-clie
    nt/11.2.0.x/perl/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:/hom
    e/psadm2/bin:.
    [psadm2@psovmfscmfp2 PRCSDOM]$ ls /opt/oracle/psft/pt/apptools/cblbin
    [psadm2@psovmfscmfp2 PRCSDOM]$ ls /opt/oracle/psft/pt/tools/cblbin
    PTPCBLAE.gnt  PTPDTTST.gnt  PTPECOBL.gnt  PTPLOGMS.gnt  PTPRATES.gnt  PTPSQLGS.gnt  PTPTESTU.gnt  PTPTSCNT.gnt  PTPTSLOG.gnt  PTPTSTBL.gnt  PTPTSWHR.gnt
    PTPCURND.gnt  PTPDTWRK.gnt  PTPEFCNV.gnt  PTPMETAS.gnt  PTPRUNID.gnt  PTPSQLRT.gnt  PTPTESTV.gnt  PTPTSEDS.gnt  PTPTSREQ.gnt  PTPTSUPD.gnt  PTPUPPER.gnt
    PTPDBTST.gnt  PTPDYSQL.gnt  PTPERCUR.gnt  PTPNETRT.gnt  PTPSETAD.gnt  PTPSTRFN.gnt  PTPTFLDW.gnt  PTPTSEDT.gnt  PTPTSSET.gnt  PTPTSUSE.gnt  PTPUSTAT.gnt
    PTPDEC31.gnt  PTPECACH.gnt  PTPESLCT.gnt  PTPNTEST.gnt  PTPSHARE.gnt  PTPTEDIT.gnt  PTPTLREC.gnt  PTPTSFLD.gnt  PTPTSTAE.gnt  PTPTSWHE.gnt  PTPWLGEN.gnt
    [psadm2@psovmfscmfp2 PRCSDOM]$The directory "/opt/oracle/psft/pt/apptools/cblbin" is owned by psadm3 and hosted on the database server (nfs mounted), so I assume we also need to set proper values for env variables, and compile the COBOLs before being able to use them.
    To resume what I did to make the COBOLs working on this PSOVM :
    1. As root, start LMF (this has to be done only once)
    cd /opt/oracle/psft/pt/cobol/microfocus
    ./mflmman
    2. As psadm1, set proper env. variable and compile (setting env variable has to be done each time you want to compile COBOLs)
    export COBDIR=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit
    export LD_LIBRARY_PATH=$COBDIR/lib:$LD_LIBRARY_PATH
    export PATH=$COBDIR/bin:$PATH
    cd $PS_HOME/setup
    ./pscbl.mak
    ./psrun.mak
    3. As psadm2, set proper env. variable and reconfigure psprcs.cfg, restart, restart (setting env variable has to be done each time you want to start the process scheduler, so probably better to append these in the .bash_profile)
    export COBDIR=/opt/oracle/psft/pt/cobol/svrexp-51_wp4-64bit
    export LD_LIBRARY_PATH=$COBDIR/lib:$LD_LIBRARY_PATH
    export PATH=$COBDIR/bin:$PATH
    cd $PS_HOME/appserv
    ./psadmin
    4. Same as step 2, but with user psadm3.
    HTH,
    Nicolas.
    PS: will it be the same issue on the HCM template delivered at the same time ? To be tested as well.
    PS2: and yes, I tested it twice before posting, result is same.
    Edited by: N Gasparotto on Sep 13, 2012 5:17 PM

    Fortunately, the COBOL issue does not exist on PSOVM HCM9.1 FP2 PT8.52.06 delivered in July 2012 (v3). COBOL are properly compiled (tools and app COBOLs), cblbin is not empty and they run successfully on the first shot.
    Nicolas.

Maybe you are looking for

  • Apple DU vs SoftRAID's drivers for RAID volumes, performancewise?

    Hi, For some time I have been using SoftRAID's (http://www.softraid.com/) drivers (v. 4.0.7) for an OS+apps SSD and my users' accounts on a 2*2TB RAID0 (WD Caviar Blacks) volume. At present the User volume is about 50% full (2 of 4TB). I am consideri

  • More language versions to come?

    Is there any chance Photoshop Album Starter Edition 3.0 will be provided in more language versions besides English and British English? I am waiting for the German-language version. PS A SE 2.0 is there in German---why not PS A SE 3.0, too? Or can I

  • Images in dashboard after deploying obiee 10g in weblogic server

    Hi, We have deployed OBIEE 10g in weblogic server at the location E:\BIDEP Initially for OC4j server we placed the images in two places: +1. E:\OracleBI\web\app\res\s_oracle10\images+ +2. E:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics

  • How to run a PS script on a remote machine

    Hi, I have a script located on a remote machine at c:\Temp\Script1.ps1  I want to run this script remotely from a driver system.  Via Powershell remoting on the driver machine, I run the following: $cred = Get-Credential Domain1\User1 $Sessid = New-P

  • How can I recover app store icon

    My apps store flash and go before I can get in it