IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Open a file DD DUMMY in output mode -Enterprise cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 30, 2009 4:41 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top