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
how do you access an uncataloged dataset in a jcl?
a dd statement has 2 types of parameters. Name them?
What is the function of the steplib dd statement?
How does jcl specify the job to the operating system?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What is one line to pass PARM from JCL to COBOL?
Explain the job statement in jcl?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
what is DSN in JCL and what are the parameters to declare the DSN?
Which dd parameters are required?
Are there any set of rules for the names of the steps used in a job? What are they?
which utility is used a dummy utility?
What is job control language?
When output dataset space is required, what quantity categories are used?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed