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 / ajay

You can do through DF SORT .
See the below Example.

OUTFIL FNAMES=OUTDD1,INCLUDE=(POS,LENGTH,COND,CONDVALUE)
OUTFIL FNAMES=OUTDD2,INCLUDE=(POS,LENGTH,COND,CONDVALUE)
OUTFIL FNAMES=OUTDD3,INCLUDE=(POS,LENGTH,COND,CONDVALUE)

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1801


when does a dataset go uncataloged?

835


Explain dfsort utility?

673


List the different components of jcl statement?

695


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1931






What are hierarchy levels in jcl?

955


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

700


What are the jcl procedures?

645


what operation is performed by job statement?

662


what is DD statement is used in JCL?

681


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

945


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

786


What do you understand by the terms: joblib and steplib?

626


How can a jobs execution priority be modified?

797


Explain the jcl exec statement?

649