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
how to compare two datasets without using superce because output is limited to 133 bytes
How is a type of file defined in the jcl that executes the cobol program?
What is the purpose of dd * statement in jcl?
Can we call instream to catalog and catalog to instream?
when does a dataset go uncataloged?
What is the function of the dd dcb keyword?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
what sort card you will use to copy the data from one dataset to another dataset?
How do you create a temporary dataset?
What are the rules employed while naming the steps in a job?
What is the maximum length of a single line of jcl?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
How does the jcl specify the job to os?