I have two input SORTIN files and We need to create one
SORTOUT file which contains data of both input files. What
is the SortCard for this?. Suppose the length of the both
files are different, then How we do it? Please reply ASAP

Answer Posted / vikas pujar

1) Sortcard to merge two files will be
//Sysin dd *
Sort fields=copy
/*

2) When try two merge two files using sort, first thing to see is they are of same length. If they are not, change the length of one equal to other in one more step which come prior to sort step.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is acct parameter mandatory?

758


how do you access an uncataloged dataset in a jcl?

827


Is condition checking possible in jcl? If yes, how?

733


Can we use DISP=SHR in output file in JCL

948


Is it possible to left uncode disp? If yes, how?

704






Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

1960


What dd statement is used to supply the name of a dataset?

770


How can values be passed from the job stream to an executable program?

867


what is DD statement is used in JCL?

676


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

771


What is the use of disp parameter?

647


Explain the purpose of dd * statement in jcl?

631


What is the purpose of dd?

722


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

854


how can you check if a file is empty using jcl?

807