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 can return codes be tested before execution of a job step?
What do you understand by jcl?
How can a fb file convert to vb file using sort program?
What is the format of comment statement?
What is the purpose of disp parameter?
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
Give the syntax of job specifying jcl statement.
Explain about ISPF/TSO Commands
A dd statement consists of 4 fields. Name them?
What is the difference between the positional and keyword parameters? Give examples.
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 ?
What is the function of //jcllib statement?
define cond parameter in jcl?
what are JCLLIB and STEPLIB in JCL?
Explain the function of //jcllib statement?