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 DD statement is used in JCL?
What is notcat 2 - gs?
What are steplib and joblib?
How jcl is used for testing batch programs?
What is the purpose of dd * statement in jcl?
Are there any set of rules for the names of the steps used in a job?
Explain how can values be passed from the job stream to an executable program?
List the different jcl statements that are not permitted in the procedures?
what happens in conversion stage in job processing?
What is the purpose of the dd keylen parameter?
Explain how can a jobs execution priority be modified?
What do you understand by the term job time – out and how can you overcome that?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
how JCL works?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK