Thursday, September 11, 2008

PeopleSoft Cobol Woes on Unix/Linux

Good Commands with Sample Output
cobrun
V4.0 revision 0 build 10/10/2 G; 14705. Run Time System RXCPR/AA0/00000D
cob -V
version @(#)cob.c 1.313
PRN=RXCPR/AAD:9i.T4.40.04
PTI=SP2
I see no work
cob -v
cob64 -C nolist -v
I see no work
/home/psoft
which PSRUN
Depends on your path

Testing your Cobol Environment (My notes are from HPUX)
Loggin to your system as the peoplesoft user or become the peoplesoft user
Setup the environment by calling the psconfig.sh in the peoplesoft home if you have multiple environments
Find PSRUN is in your path with which PSRUN. If it is not in your path you need to link your cobol (check your PS_HOME/setup/)
Run a test cobol with the following command "PSRUN PTPDBTST"
IT FAILED fails check your path variables. Example I needed to add these two on hpunix
export SHLIB_PATH=$ORACLE_HOME/lib:$PS_HOME/bin:$SHLIB_PATH
Test again "PSRUN PTPDBTST"

Pray it works

A few things to be mindfull of. Cobol is very picky of the environment. Make sure you have double checked all of your environmental variables as well as someone else has doublechecked them.

I expect to be installing this on redhat 5 soon, so expect an update.