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

DUMMY When do I need add a DCB parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Martylin

New User


Joined: 08 Mar 2016
Posts: 13
Location: Taiwan

PostPosted: Fri Dec 08, 2017 7:20 am
Reply with quote

//INP0501 DD DUMMY,LRECL=133 => OK

//INP0501 DD DUMMY => ABEND

IBM0122S ONCODE=22
The RECORD condition was raised because the length of the record variable was greater than the record
length (FILE= INP0501).

why my other jcl didn't abend without DCB parameter?
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 879
Location: The Universe

PostPosted: Fri Dec 08, 2017 9:21 am
Reply with quote

That's actually a good question. I, too, have occasionally been killed by unexpected DD DUMMY issues like the one you encountered. It seems to me input DD DUMMY shouldn't care since any input request is going to immediately raise end of data.

Output, on the other hand, does raise possible problems. Speaking in Assembler terms, DSORG=PS,MACRF=PL requires a pseudo I/O buffer since PUT returns a buffer address, where DSORG=PS,MACRF=PM does not because (hopefully) the access method is just going to return without moving anything.

I just spent some time hunting for a hint in DFSMS Using Data Sets and found nothing.

JCL Reference says
Quote:
Code the DCB parameter, if needed. If the program does not supply all the data control block information, make sure that the DCB parameter supplies the missing information.
In other words, that's meaningless. How the [text deleted since terms inappropriate for the gentler gender and most children were used] is some poor shlub going to answer this!
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2476
Location: Netherlands, Amstelveen

PostPosted: Fri Dec 08, 2017 12:13 pm
Reply with quote

"An OPEN macro instruction was issued for a dummy data set; the BLKSIZE and BUFL values are both 0. Correct the DCB by specifying a BLKSIZE or BUFL value other than 0."

IEC141I 013-rc,mod,jjj,sss, ddname[-#] [,dev,volser, dsname(member)]

Where rc = 10.

Quote:
It seems to me input DD DUMMY shouldn't care since any input request is going to immediately raise end of data


Before any input/output occurs, a dataset has tp be opened.
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1008

PostPosted: Fri Dec 08, 2017 11:03 pm
Reply with quote

Martylin wrote:
//INP0501 DD DUMMY,LRECL=133 => OK

//INP0501 DD DUMMY => ABEND

IBM0122S ONCODE=22
The RECORD condition was raised because the length of the record variable was greater than the record
length (FILE= INP0501).

why my other jcl didn't abend without DCB parameter?

No context given on the used environment, and other circumstances.

Trying to guess.

This happened when trying to READ a fixed length record into a variable within some PL/I code, isn't it?

PL/I OPEN FILE collects the attributes in standard sequence:
1) From DECLARE FILE statement in PL/I program
2) From DD DCB= parameters in JCL
3) From DSCB (e.g. "dataset label")

In your case #2, and #3 definitely have no LRECL definition. I can guess that your PL/I code has no ENV( RECSIZE(...) ) definition in its DCL INP0501 FILE statement.

This situation must definitely cause the mentioned ABEND, unless DCB has been specified somehow either in DD, or in (existing) DSCB.

BTW, this topic is not related to "JCL/VSAM"; it is more PL/I issue.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SMF Specify in the INCLUDE parameter ... DFSORT/ICETOOL 7
No new posts New Parameter should be added to the ... CLIST & REXX 30
No new posts Can we pass the value of Symbolic par... JCL & VSAM 5
No new posts Increase the Maximum Length of LRECL ... JCL & VSAM 5
No new posts File data to symbolic parameter JCL & VSAM 5
Search our Forums:

Back to Top