Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7990
Location: Bellevue, IA

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: 6966
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 splitting a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us