If a field is declared as a comp-3 field and if we want to
sort a dataset based on this field, then how will the sort
card be???
e.g- if we want to sort by a field which is defined as a
PIC X(5) then we will mention - sort fields=(1,5,ch,a).
Likewise if a field is defined as PIC S9(10)COMP-3 then in
this case how will the sort field be defined (because in
this case a sign is also involved)???
Answer Posted / asish
Yes Bramar is right.
The sort card should be like this
sort fields=(1,6,PD,A)
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How is the record format of an output dataset specified?
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 you can direct the data to spool using SYSOUT option?
For what purpose steplib and joblib are used ?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What is use of restart and how to use it?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
what is use of dcb parameter in dd statement?
Explain about LMFREE�free data set from its association with data ID
Explain the job statement in jcl?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
In job processing, what happens in execution stage?
how do you access an uncataloged dataset in a jcl?
Differentiate between addressing mode and run mode.
Mention the types of job control statements?