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
 

 

Question about DD DUMMY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Thu Jul 10, 2008 6:52 pm    Post subject: Question about DD DUMMY
Reply with quote

Can anyone help me understand this JCL syntax? Will it have some records or not, if dummy then why is DCB given?

//Q105PRT DD DUMMY,DCB=(RECFM=FBA,LRECL=133,BLKSIZE=3990)


Thanks,
Kumar.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 10, 2008 6:57 pm    Post subject:
Reply with quote

Well, take a look at your DD statement. If the file is output where would the records be written to, and if it is input, from which file will the data be read from. In both cases the answer is the same - no file specified.

DCB is usually picked up from the catalog entry of the dataset if input, or defined in the DD statement if output. In the case of input dummy file;, there is no filename to get the catalog information from, hence the need to define it.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Jul 10, 2008 7:03 pm    Post subject:
Reply with quote

expat wrote:
DCB is usually picked up from the catalog entry of the dataset if input....
The DCB info is more often found in the tape header label or DASD VTOC entry for a file. Only VSAM files have record length info in the catalog.
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Thu Jul 10, 2008 7:11 pm    Post subject: Reply to: Doubt in DUMMY
Reply with quote

Thanks for this valuable info........
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jul 11, 2008 6:44 pm    Post subject:
Reply with quote

As I recall, if the DUMMYed file is O/P and the pgm has not specified the minimum DCB info (usually w/Assembler pgms) the pgm will abend or issue a bad status code if the DD card doesn't contain the LRECL.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts SQL Order By related question Joseph K Thomas DB2 8 Fri Mar 18, 2016 12:53 pm


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