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
what is the purpose of coding class parameter in job statement?
What are the jcl procedures?
What is catelog procedure and how many catelog procedure to use in one job?
Explain how can an in-stream dataset be terminated?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
Why block size is multiple of lrecl in jcl?
What is the difference between run mode and addressing mode?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
what is use of dcb parameter in dd statement?
what is use of disp parameter in dd statement?
What are the utility programs in jcl?
Is condition checking possible in jcl? If yes, how?
i want to store 20 digits . how will u do it in cobol ?
What is the function of dd name parameter with a 2 part structure; audit.report?
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 ?