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
I need exexution process for JCL programs
What are the parameter we cannot use in procedure?
List the various advantages of using jcl language?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
how would you create a temporary dataset? And where will you use them?
How can a fb file convert to vb file using sort program?
in ways data can be passed to a COBOL program from JCL?
Mention the types of job control statements?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
What is the function of the steplib dd statement?
What do you know about jcl?
What is the syntax of JCL statement?
how do you access an uncataloged dataset in a jcl?
Must tape dataset definitions include vol=ser specifications?