Portal | 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: 19
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: 1220
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: 10701
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: 2418
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: 19
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 Break a record into fields, each fiel... jackare SYNCSORT 2 Thu Oct 08, 2020 5:26 am
No new posts SYNCSORT Error - CONTROL FIELD BEYOND... arunn SYNCSORT 10 Sun Oct 04, 2020 4:10 pm
No new posts Easytrieve EZABX007 with error code 0... Carol Schablow CA Products 7 Thu Sep 24, 2020 3:30 am
No new posts SARBCH REPORT DD writing error kris_madras CA Products 1 Tue Sep 15, 2020 4:22 pm
No new posts EIBRESP =16 & EIBRESP2 = 01 while... Farheen CICS 4 Mon Aug 24, 2020 2:05 pm

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