how to have variable length record in outrec..i have the
requmt as follows..
i/p file variable lenght record
output file : i need to alter the input and write into
outrec(another file)
sort fields:
copy from(dd1) using ctl1
ctl1cntl dd *
outfil fnames=xxx,
outrec=(1,131)
here i outrec is bombing with error..how to overcome this
defect...???
Answer Posted / deepika
We need to include RDW in OUTREC,Record Descriptor Word :
Data preceding a variable record that specifies the length
of the entire record including the RDW.) in outputs which
takes 4-bytes.So we need to add add 4-bytes to OUTREC as,
OUTREC=(1,4,5,131)
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the function of the dd avgrec keyword in sms datasets?
How do you create a temporary dataset?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Is condition checking possible in jcl?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
how JCL works?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Is their any set of rules for dd? Explain.
How to pass the parameter in parm using linkage section ? (syntax)?
What is timing concept in mainframe?
Mention the types of job control statements?
What are steplib and joblib? What for they are used?