There are two input sorting files and there is a need to
create one sort out file which contains data of both input
files. What is the sort card for this. Write a sample JCL
for this using a control card?

Answer Posted / dineshj

There is a way to give two input files in dfsort. coding is
here.,
//iksa01 job .....
//stp1 exec pgm=sort
//sortin dd dsn=iksa01.dfsort.input1,disp=shr
// dd dsn=iksa01.dfsort.input2,disp=shr
//sortout dd dsn=iksa01.dfsort.output1,disp=shr
//sysout dd sysout=*
//sysin dd *
/*
//

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of a dd statement?

670


what is use of disp parameter in dd statement?

673


What parameters can be used to limit the number of records written to a sysout dataset?

761


What are s0c1, s0c4, s0c5, s0c7 and socb?

713


what happens in execution stage in job processing?

663






What is the difference between run mode and addressing mode?

647


What is concatenating?

650


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1976


How do you create a temporary dataset?

678


what are the various stages of job processing?

749


Is it possible to code instream data in a PROC?

771


What is the difference between the positional and keyword parameters? Give examples.

728


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

761


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1742


What are the 2 types of parameters in dd statement?

665