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 / jegadeesan ramu
sort fields=(1,6,a),format=bi
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
A dd statement consists of 4 fields. Name them?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Define concatenating?
What is the function of dd name parameter with a 2 part structure; audit.report?
Differentiate between the joblib and the steplib statements?
How can the disposition of sysout datasets be set for an entire jobstream?
How to alter the parameters for the existing gdg?
what happens in execution stage in job processing?
what is the difference between JES3 and JES2?
What is the difference between the positional and keyword parameters? Give examples.
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
What is the purpose of dd?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What is the use of symbol // in jcl?