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

in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2423


which parameter is use to declare the name of dataset in dd statement?

982


How to submit a jcl from cics?

873


Is it possible to left uncode disp?

909


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

1068


When output dataset space is required, what quantity categories are used?

1086


What is the function of dd disp parameter?

856


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

4569


What is the function of //jcllib statement?

1043


Which dd parameters are required?

899


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

913


Explain how can an in-stream dataset be terminated?

955


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

1904


Is condition checking possible in jcl? If yes, how?

992


Is it possible to define dd statements as you want?

861