Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
An write operation error - ABENDED S000 U40

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sandeep prajapati

New User


Joined: 23 Mar 2020
Posts: 17
Location: India

PostPosted: Sun Apr 12, 2020 12:16 pm    Post subject: An write operation error - ABENDED S000 U40
Reply with quote

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
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1210
Location: Vilnius, Lithuania

PostPosted: Sun Apr 12, 2020 5:49 pm    Post subject:
Reply with quote

Stop polluting this forum for experts with your incompetence!
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10696
Location: italy

PostPosted: Sun Apr 12, 2020 9:38 pm    Post subject: Reply to: An write operation error - ABENDED S000 U40
Reply with quote

Quote:
Neither FILE STATUS nor a declarative was specified for file BALANCE

fix the error
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2378
Location: Hampshire, UK

PostPosted: Mon Apr 13, 2020 1:43 am    Post subject: Reply to: An write operation error - ABENDED S000 U40
Reply with quote

Please join this forum: Beginner's
Back to top
View user's profile Send private message
sandeep prajapati

New User


Joined: 23 Mar 2020
Posts: 17
Location: India

PostPosted: Mon Apr 13, 2020 6:53 am    Post subject: An write operation error - ABENDED S000 U40 Read more: htt
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extract part of data from file and wr... sathyajes DFSORT/ICETOOL 9 Thu Jul 16, 2020 10:49 am
No new posts Force a Return Code and print error m... Rick Ryan SYNCSORT 30 Thu Jun 25, 2020 1:18 am
No new posts JCL ERROR - Opernad too Long dharmaraok JCL & VSAM 4 Tue Apr 21, 2020 1:20 pm
No new posts Write 9(07) comp-3 data into output file clearskynot DFSORT/ICETOOL 4 Thu Apr 16, 2020 11:00 pm
No new posts COBOL program error ENDED AT SVSCJES2... sandeep prajapati COBOL Programming 1 Sat Apr 11, 2020 6:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us