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

How can return codes be tested before execution of a job step?

1040


What do you understand by jcl?

713


How can a fb file convert to vb file using sort program?

922


What is the format of comment statement?

770


What is the purpose of disp parameter?

728






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

4353


Give the syntax of job specifying jcl statement.

714


Explain about ISPF/TSO Commands

1438


A dd statement consists of 4 fields. Name them?

1048


What is the difference between the positional and keyword parameters? Give examples.

807


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9352


What is the function of //jcllib statement?

919


define cond parameter in jcl?

874


what are JCLLIB and STEPLIB in JCL?

775


Explain the function of //jcllib statement?

818