View previous topic :: View next topic
|
Author |
Message |
sandeep prajapati
New User
Joined: 23 Mar 2020 Posts: 19 Location: India
|
|
|
|
SYSOUT error:
Code: |
IGZ0020S A logic error occurred. Neither FILE STATUS nor a declarative was specified for file BALANCE in program ACCOUNTS at relative location X'86C'. The status code was 48. From compile unit ACCOUNTS at entry point ACCOUNTS at compile unit offset +0000086C at entry offset +0000086C at address 1AD0086C. |
JCL:
Code: |
//COBRUN JOB NOTIFY=Z56117,CLASS=A,MSGCLASS=A,PRTY=15
//COBOL EXEC IGYWCL,MBR=BANKCOB
//RUN EXEC PGM=BANKCOB
//STEPLIB DD DSN=&SYSUID..LOAD,DISP=SHR
//BALANCE DD DSN=Z56117.SOURCE.BALANCE,DISP=SHR
//DEPOSIT DD DSN=Z56117.SOURCE.DEPOSIT,DISP=SHR
//WITHDRW DD DSN=Z56117.SOURCE.WITHDRW,DISP=SHR
//SYSOUT DD SYSOUT=* |
File status is 48: A WRITE operation has been tried on a file not opened in the OUTPUT, I-O, or EXTEND mode, or on a file
open I-O in the sequential access mode.
file DD name: BALANCE Is used in I-O mode as it reads & writes the account balance. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
Neither FILE STATUS nor a declarative was specified for file BALANCE
|
fix the error |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
Back to top |
|
|
sandeep prajapati
New User
Joined: 23 Mar 2020 Posts: 19 Location: India
|
|
|
|
the issue is resolved.
I introduced a new file for the output, Avoiding opening any file in I-O mode.
adding File status it worked fine.
many thanks, for your time. |
|
Back to top |
|
|
|