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 / shailesh soni
Sort card for sorting Comp 3 field is
sort fields = (1,6,PD,A)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
In sms datasets, what is the function of the dd mgmtclas keyword?
i want to store 20 digits . how will u do it in cobol ?
how can you check if a file is empty using jcl?
How to do automated restart when a job abend?
What is multithreading in jcl?
How do you submit a job for execution?
Which dd parameters are required?
what is the difference between JES3 and JES2?
How is the record format of an output dataset specified?
How can the attributes of one sms dataset be copied to another dataset?
How gdg are concatenated?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Is it possible to code instream data in a PROC?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
How can a jobs execution priority be modified?