wht r different types of sort fields in jcl ?
Answer Posted / pullareddy
1. SORT FIELDS=COPY ===> To copy all the records from
SORTIN to SORTOUT.
2. SORT FIELDS=COPY,SKIPREC=100,STOPAFT=5 ===> TO copy the
records from 100 to 105.
3. SORT FIELDS=(STARTPOS,LENGTH,TYPE,ASC/DESC) ===> TYPE
can be: ZD(zoned decimal), CH(Charecter),BI(Binary),PD
(Packed decimal), and FS(Signed numbers).
4. INCLUDE COND=(STATPOS,LENGTH,TYPE,RO,VALUE) EX: INCLUDE
COND=(1,5,CH,EQ,C'PULLA) ===> To select the paticlular
record. same as above to omit the record replace INCLUDE
with OMIT.
5. INREC FIELDS=(15,5,6,6) ===> to restructure the input
file before feeding to sort.
6. OUTREC FIELDS=(1:1,20,21:C'PULLA',26:10Z,36:21,10) ===>
First 20 chars from input file followed by character PULLA
followed by 10 zeros followed by characters from 21 to 10
characters of input. the same can be codded as bellow.
OUTREC FIELDS=(1,20,C'PULLA',10Z,21,10).
7. SORT FIELDS=(1,5),EQUALS
SUM FIELDS=NONE ===> TO remove the duplicates in the key
field(1,5).
| Is This Answer Correct ? | 47 Yes | 4 No |
Post New Answer View All Answers
what sort card you will use to copy the data from one dataset to another dataset?
How can values be passed from the job stream to an executable program?
Explain how can a jobs execution priority be modified?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
when can a job time-out occur? How to overcome that?
How can a jobs execution priority be modified?
Explain dfsort utility?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
How does jcl specify the job to the operating system?
what is use of dsn parameter in dd statement?
How to run cobol program using jcl?
What is the purpose of dd * statement in jcl?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
what is DSN in JCL and what are the parameters to declare the DSN?
Are there any set of rules for the names of the steps used in a job?