View previous topic :: View next topic |
Author |
Message |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Tue Jun 29, 2004 2:12 pm Post subject: REXX calling COBOL program |
|
|
Can somebody write an example of how to execute a cobol program with rexx on OS/390
I'll really appreciate your help.
Thanks |
|
Back to top |
|
 |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Tue Jun 29, 2004 3:04 pm Post subject: Calling cobol with rexx |
|
|
These solutions do not resolve my problem. I tried the:
ADDRESS TSO "CALL 'PROD.BATCH.LOADGNT(TEST)'"
The error that is giving me is:
Code: |
IGZ0035S There was an unsuccessful OPEN or CLOSE of file REXX0TES in program IT
TEST at relative location X'02E4'.
Neither FILE STATUS nor an ERROR declarative were specified. The statu
s code was 96.
From compile unit ITTEST at entry point ITTEST at compile unit offset
+000002E4 at address 00063EDC.
IEA995I SYMPTOM DUMP OUTPUT
USER COMPLETION CODE=4038 REASON CODE=00000001
TIME=16.54.35 SEQ=00331 CPU=0000 ASID=0030
PSW AT TIME OF ERROR 078D1000 8009C0DE ILC 2 INTC 0D
ACTIVE LOAD MODULE ADDRESS=00093828 OFFSET=000088B6
NAME=CEEBINIT
DATA AT PSW 0009C0D8 - 00181610 0A0D18C7 58200010
AR/GR 0: 00000000/04000000 1: 00000000/04000FC6
2: 00000000/00000003 3: 00000000/80000001
4: 00000000/0005E530 5: 00000000/0000000B
6: 00000000/04000FC6 7: 00000000/00000001
8: 00000000/00064EF0 9: 00000000/00000003
A: 00000000/0009F288 B: 00000000/0009BB60
C: 00000000/00067B10 D: 00000000/082A9008
E: 809FA03C/0000000E F: 00000000/00000001
END OF SYMPTOM DUMP
|
I've allocated the file with this:
ALLOCATE DA(REXX.TESTFILE) NEW VOLUME(VM110C)
Can somebody help me with this?
Thanks in advance for all the help you can provide |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jun 29, 2004 3:16 pm Post subject: |
|
|
Juan00982,
Your rexx indeed called the cobol program and your cobol program abended with a file status code of 96. Did you allocate a File for the DD Name REXX0TES?
File Status 96 explanation:
For VSAM file: An OPEN statement with the OUTPUT phrase was attempted, or an OPEN statement with the I-O or EXTEND phrase was attempted for an optional file, but no DD statement was specified for the file.
For QSAM file: An OPEN statement with the OUTPUT phrase was attempted, or an OPEN statement with the I-O or EXTEND phrase was attempted for an optional file, but no DD statement was specified for the file and the CBLQDA(OFF) run-time option was specified.
Hope that helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Tue Jun 29, 2004 3:21 pm Post subject: |
|
|
Actually I tried with the file name TESTFILE, but the file is located as
REXX.TESTFILE
is this the problem ? |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Tue Jun 29, 2004 11:16 pm Post subject: |
|
|
Iy is a misunderstanding of the word 'file'. on a PC a file is a physical unit. On a mainframe, it is a logical unit. The physical unit is a data set (hence DA(...)) but the logical unit is a file or ddname (or FILE(...) or DD(...) in the alloc command). |
|
Back to top |
|
 |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Wed Jun 30, 2004 6:56 am Post subject: |
|
|
What i meant by file name TESTFILE was that on COBOL I assigned my output to TESTFILE.
I know that on OS/2 you use SET command to reference the physical file to the program. I think you do the same on mainframe with allocate, at least that's what I read on a post.
I'm working on this today, If I get any further errors I'll post them here.
Thanks to everyone for your help. |
|
Back to top |
|
 |
|
|