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

Answers were Sorted based on User's Feedback



I have two input SORTIN files and We need to create one SORTOUT file which contains data of both i..

Answer / srk

//jobname job .......
//stepname1 exec pgm=sort
//sysprint dd sysout=*
//sortin01 dd dsn=file1,disp=shr
//sortin02 dd dsn=file2,disp=shr
//sortout dd dsn=mergefile,.......
//sysout dd sysout=*
//sysin dd *
merge fields=(starting field,length,merge-sequence,format)

/*
*above is the merge condition
//

Is This Answer Correct ?    8 Yes 0 No

I have two input SORTIN files and We need to create one SORTOUT file which contains data of both i..

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

I have two input SORTIN files and We need to create one SORTOUT file which contains data of both i..

Answer / srinivas yadav

any one plz write the code for this.

Is This Answer Correct ?    1 Yes 0 No

I have two input SORTIN files and We need to create one SORTOUT file which contains data of both i..

Answer / vikas pujar

Continuation to last answer. If the input files are of VB, even if length vary, files will be merged. The file with Max
RECFM and BLKSIZE will be used for output. But for FB files RECFM should be same.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More JCL Interview Questions

In my JCL 10 Steps Will Be there Now i want to execute step05 And step06. How to Give the Cond?

2 Answers   IBM,


What will happen if you attempt to restart a job in the middle of a JCL // IF .... // ENDIF?

4 Answers  


A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?

5 Answers   IBM, Wipro,


Are there any set of rules for the names of the steps used in a job? What are they?

0 Answers  


One of My Job is running in production, which contains five steps?i want to pass the input to FIFTH step while running is it possible? if how?

1 Answers   CTS,






Suppose your program is reading a Sequential Vsam file. The file contains 10 records. How will you code the JCL to read only 2nd, 5th, 7th,and 10th record?

1 Answers   Thomson,


how to edit a tape dataset ? asked in wipro

1 Answers   Wipro,


I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want to execute from STEP7 to STEP10. ONLY using CONDITION CODES how can we execute this process? 1. Where we can set cond codes for STEP5 and STEP6? 2. How can we execute remaining steps from STEP7 to STEP10?

2 Answers  


How to DEBUG a JCL?

9 Answers   Satyam,


what is d/f b/w sysout & sysprint

4 Answers   TCS,


Explain about CBL/PROCESS statement syntax

1 Answers  


a job have 5 steps and it will executes a proc which have 5steps in it. now i have to execute step3 only when step2 of proc executes successfully

3 Answers  


Categories