In one of intervie, my interviwer asked, I have a file
which contains 4 records I would like to split the 4
different outputs for each record how to do?
Answer Posted / aarti sharma
Sort utility could be used for this with the OUTFIL option.
In your case you will have to mention 4 outfil op
OUTFIL RECORDS=(POS,LENGTH,COND,CONDVALUE) OUTIL=PS1
PS1 would be the outdataset need to define in DD stmt. In
ur case you need to have 4 outfil stmts mentioning 4
outfile record..
Not sure about the syntax..
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What are the rules employed while naming the steps in a job?
What is the function of //cntl statement?
What is the function of the dd dcb keyword?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
which utility is used a dummy utility?
Explain about ISPF/TSO Commands
can any one plzzzzzz tell the jcl code for creating ps using idcams
How does the jcl specify the job to os?
What is the function of dd name parameter with a 2 part structure; audit.report?
Explain the function of //jcllib statement?
List the different jcl statements that are not permitted in the procedures?
what is the purpose of coding class parameter in job statement?
Explain in DD statement what is the use of DCB parameter?
List the different components of jcl statement?
what is use of dcb parameter in dd statement?