本文主要是介绍COBOL for PT7.x,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Cobol Problems –
Scenario: DR Project, needs to setup a new Unix Server for PS system.
PT version. 7.02, 8.18.09 and 8.42.09
Problem: PT 7.02 need Cobol reinstall again –
Solution:
Starting from PT Version 8, no Cobol needs to installed on Server. But PT 7.x still needs Cobol.
Error:
exec(): 0509-036 Cannot load program /usr/lpp/cobol2011/bin/rts32 because of the following errors:
0509-150 Dependent module libcobrts.2.so could not be loaded.
0509-022 Cannot load module libcobrts.2.so.
0509-026 System error: A file or directory in the path name does not exist.
*********** no cobol installed. Copy COBOL directory from Primary server.
COBOL directory:
$ echo $COBDIR
/usr/lib/cobol
Error:
Load error : file 'PTPUPRCS'
error code: 173, pc=0, call=1, seg=0
173 Called program file not found in drive/directory
************ try to compile COBOL:
1. go to FT7.x PS_HOME
2. under “install” directory, run
$ ./pscbl.mak
Error message:
ASLM: Semaphore failure. Rerun as root
ASLM: Errno 1013
************ COBOL license did not be installed
login as “root” user:
# cd /usr/lob/cobol/lmf
:/usr/lib/cobol/lmf# sh lmfinstall
## it will create a new directory mflmf on directory :/usr/lib; go to the new directory
:/usr/lib/mflmf# sh mflmcmd
when prompted, enter I
enter serial no.
enter License no.
testing command: ./lmfgetpv
********************** re-compile cobol for PT 7.x environment.
1. go to FT7.x PS_HOME
2. under “install” directory, run
$ ./pscbl.mak
message should be:
“All COBOL programs have been successfully compiled.”
$ ./psrun.mak
message:
cp: /psoft/fsys7/bin/libpsora.a: Cannot open or remove a file containing a running program.
linking PSRUN ...
Successfully created PSRUN in directory: /psoft/fsys7/bin
*********** everything will be ok now.
这篇关于COBOL for PT7.x的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!