How to fetch even records from one file to another file by
using ICETOOL in JCL?
Answer Posted / rajvee
Step01 exec pgm=sort
.
.
.
sysin dd *
sort fields=copy
outfil fnames(out1,out2),split
first rec will be in out1 file, second in out2,third in
out1 and so on..
so out2 will have even number recs.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
is there any way to execute more than one proc in the same exec statement at the same time..?
Explain how can an in-stream dataset be terminated?
What is the function of the dd mgmtclas keyword in sms datasets?
How does jcl act on code(if you take a cobol program)?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
Explain in DD statement what is the use of DCB parameter?
which utility is used to sort a file in jcl?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Explain the purpose of dd * statement in jcl?
what is the use of IEBGENER utility?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
which utility is used to run a cobol-db2 program?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
How can values be passed from the job stream to an executable program?