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


Please Help Members By Posting Answers For Below Questions

What are the rules employed while naming the steps in a job?

662


What is the function of //cntl statement?

830


What is the function of the dd dcb keyword?

825


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?

7601


which utility is used a dummy utility?

792






Explain about ISPF/TSO Commands

1313


can any one plzzzzzz tell the jcl code for creating ps using idcams

10517


How does the jcl specify the job to os?

696


What is the function of dd name parameter with a 2 part structure; audit.report?

700


Explain the function of //jcllib statement?

708


List the different jcl statements that are not permitted in the procedures?

640


what is the purpose of coding class parameter in job statement?

721


Explain in DD statement what is the use of DCB parameter?

656


List the different components of jcl statement?

695


what is use of dcb parameter in dd statement?

775