Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Open a file DD DUMMY in output mode -Enterprise cobol

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

New User


Joined: 29 Jan 2008
Posts: 14
Location: Bangalore

PostPosted: Wed Dec 30, 2009 1:22 pm    Post subject: Open a file DD DUMMY in output mode -Enterprise cobol
Reply with quote

In the Enterprise COBOL for z/OS 3.4 manual on page 368 there is a statement
regarding OPEN OUTPUT. It says:

Do not specify OUTPUT for files that:
Are defined with a DD dummy card. Unpredictable results can occur.

Huh? I've used DD DUMMY on output files for OS390 cobol and I've never had unpredictable results. The program always runs and writes to DUMMY, ie. no where.

But when we upgrade the program to Enterprise COBOL for z/OS 3.4 it gives U4083 abend
IGZ0035S There was an unsuccessful OPEN or CLOSE of file XXXXXX in program XXXXXXXXX .Neither FILE STATUS nor an ERROR declarative were specified. The status code was 90.
Back to top
View user's profile Send private message

mahesh83

New User


Joined: 29 Jan 2008
Posts: 14
Location: Bangalore

PostPosted: Wed Dec 30, 2009 2:38 pm    Post subject: Reply to: Open a file DD DUMMY in output mode -Enterprise co
Reply with quote

Please advise me what has to be done in order to avoid this abend in Enterprise cobol..Thank you
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8280
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 30, 2009 4:41 pm    Post subject:
Reply with quote

Follow the manual and don't attempt to open an output file that is pointing to DD DUMMY. The manual is quite clear -- and unpredictable results can include (surprise!) abends.

Seriously, without providing us with code, JCL, or anything else just how do you expect us to be able to help?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Wed Dec 30, 2009 5:08 pm    Post subject:
Reply with quote

E-Cobol seems to really support Optional Files. Had the TS bothered to read a few pages more, there may be a replacement for OUTPUT dummy.

and he should be referencing the Application Programmers guide,
as well as reading it.
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 How to display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm

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