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...???



how to have variable length record in outrec..i have the requmt as follows.. i/p file variable le..

Answer / 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

More JCL Interview Questions

I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?

16 Answers  


Can we create VSAM file by using IEBGENER?

4 Answers   Principal Finance,


What dd statement is used to supply the name of a dataset?

0 Answers  


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

0 Answers  


a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file

6 Answers   ITC Infotech,






what is the general use of PARM? Give an explanation about the system defined parameters that could be passed through this PARM like XREF,LIST,LET,APOST,RENT etc..

3 Answers   Cognizant,


Wrete a JCL to compare two files and mached records move to onc file & un mached rows wants to another file?

13 Answers   CGI, DSRC, IBM,


Explain the function of //cntl statement?

0 Answers  


When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?

6 Answers  


if the submitter of a job wants to inform another user about the job completion, how can it be done?

0 Answers   IBM,


What do you understand by jcl?

0 Answers  


describe the dd statement,its meaning,syntax and keywords?

1 Answers  


Categories