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 |
Suppose i have a file with 10 recs and i want to skip only the 7 th record and copy the rest into another file. How do i do it using SORT?
how do you resolve for soc7 error
What is the purpose of dd dummy statement?
how to increase the space of a dataset in instream procedure.
What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?
What is the significance of addrspc parameter in the exec statement?
if we compile the cobol+ db2 program now ofter 5 years we need to compile again?
what is use of dsn parameter in dd statement?
Hi, all Suppose i have 10 step in a job (s1,s2,s3,...s10) i want to execute step9 first and then step3 and i used the DPRTY for these steps. so what will happen to other steps? Will the get executed or only these two steps get executed?
What is DATACOM db?
what type of version is we r using now real time in all modules(cobol, jcl, cics, db2, vsam)?
Differentiate between the joblib and the steplib statements?