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 / albert
We have to specify the sort card like below.
Sort fields=(1,5,PD,A) -> PD is packed decimal
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What are the rules employed while naming the steps in a job?
Matching Logic in Jcl not in cobol.Could any one please answer this question
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
What is the difference between the positional and keyword parameters? Give examples.
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
Describe the various parameters utilized in the creation of a gdg?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Why block size is multiple of lrecl in jcl?
How would you understand error(execution phase)?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Is their any limit for data sets?
how can the same proc be re-used and called by many jobs?
State the uses of syspring, sysin, sort fields, sum fields and dummy.