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: 8057
Location: East Dubuque, Illinois, 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: 6967
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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