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 / 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 |
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above
I have 5 steps in my jcl ,I need to execute first three steps and then 2nd step again ,4th and 5th steps if rc of 2nd step is zero
Name the system library from which modules are retrieved at execution
What is the difference between joblib and jcllib statements
How can values be passed from the job stream to an executable program?
i want to restart frm step 2, previously i coded cond parameter on step2 wht happens at tht time ?
Why block size is multiple of lrecl in jcl?
how to compare two datasets without using superce because output is limited to 133 bytes
what is the use of IEBGENER utility?
What is the meaning of the EXEC statement keyword, COND? What is its syntax?
List the different jcl statements that are not permitted in the procedures?
Explain about RECORDING MODE Clause