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
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 |
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 |
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 |
What are the common jcl syntax errors you get? This is not abends?
how to purge 50 initiators continuously?? console commands??
Explain how can a stopped job be started again?
List the different jcl statements that are not permitted in the procedures?
As PARM can supply information to a program ? Can PARM be used to supply information to a cataloged or Inline Procedure also ?
How can you trap abends in the JCL?
Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ?
restart logic ?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Using DELETE what type of file can you delete? a)SEQUENTIAL FILE B)INDEXED FILE C) D) Some options were there..i cant remember
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
how to create a member or sequential dataset through tso command??