Given a input file with duplicates how to remove the
duplicate records from the file using JCL?
Answer Posted / sudee
//STEP10 EXEC PGM=SORT,REGION=1024K
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...,DISP=SHR
//SORTOUT DD DSN=...
//SYSIN DD *
SORT FIELDS=copy
SUM FIELDS=NONE
/*
//
| Is This Answer Correct ? | 25 Yes | 12 No |
Post New Answer View All Answers
Name what parameter directs the output of the job log dataset?
List the different components of jcl statement?
what are JCLLIB and STEPLIB in JCL?
a dd statement has 2 types of parameters. Name them?
How can a stopped job be started again?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
how you can direct the data to spool using SYSOUT option?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
In job processing, what happens in execution stage?
What is the function of //jcllib statement?
What do you understand by the terms: joblib and steplib?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Is condition checking possible in jcl? If yes, how?
Explain dd statement in jcl?
For what purpose steplib and joblib are used ?