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 function of job statement in jcl?
Explain the function of //jcllib statement?
What are the utility programs in jcl?
What do you understand by the term job time – out and how can you overcome that?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
List the various advantages of using jcl language?
How dummy is used in jcl?
which utility is used to sort a file in jcl?
How can an in-stream dataset be terminated?
Brief description of inline procedure of jcl.
What are some jcl statements that are not allowed in procedures?
What are the 2 types of parameters in dd statement?
Explain how can an in-stream dataset be terminated?
How does jcl act on code(if you take a cobol program)?
how would you create a temporary dataset? And where will you use them?