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


Please Help Members By Posting Answers For Below Questions

what is DD statement is used in JCL?

683


What is notcat 2 - gs?

941


What are steplib and joblib?

725


How jcl is used for testing batch programs?

723


What is the purpose of dd * statement in jcl?

814






Are there any set of rules for the names of the steps used in a job?

639


Explain how can values be passed from the job stream to an executable program?

632


List the different jcl statements that are not permitted in the procedures?

642


what happens in conversion stage in job processing?

734


What is the purpose of the dd keylen parameter?

726


Explain how can a jobs execution priority be modified?

745


What do you understand by the term job time – out and how can you overcome that?

608


How to execute 2nd and 4th steps among 5 steps in jcl proc?

750


how JCL works?

802


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

1487