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 / bramar
Hi Albert,
I have a small doubt in your answer
for S9(10)COMP-3 the size will be 6 bytes
So I think it may be
sort fields=(1,6,PD,A)
Confirme weather my answer is right or wrong
Thanks in advance
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is the function of //cntl statement?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
Explain the function of the steplib dd statement?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
what is DSN in JCL and what are the parameters to declare the DSN?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
What is the function of the dd dcb keyword?
How gdg are concatenated?
How can a fb file convert to vb file using sort program?
For what purpose steplib and joblib are used ?
Explain how can a stopped job be started again?
I need exexution process for JCL programs
What is Cataloged Procedures?
how do you access an uncataloged dataset in a jcl?
How to override loadlib?