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
How is the record format of an output dataset specified?
What are the 2 types of parameters in dd statement?
Brief description of inline procedure of jcl.
what are JCLLIB and STEPLIB in JCL?
how to compare two datasets without using superce because output is limited to 133 bytes
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
Explain the function of dd name parameter with a 2 part structure; audit.report?
how can you check if a file is empty using jcl?
when does a dataset go uncataloged?
what is JCL?
Explain the purpose of dd dummy statement?
Name what parameter directs the output of the job log dataset?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
What is the purpose of dd * statement in jcl?