How to find out the number of records in a file using JCL
Answer Posted / logeshwaran
//COUNT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=INPUT DATASET,
// DISP=SHR
//TOOLIN DD *
COUNT FROM(IN)
/*
| Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of disp parameter?
Is their any set of rules for dd? Explain.
How to submit jcl through a cobol program?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
what happens in execution stage in job processing?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What are steplib and joblib? What for they are used?
How can the disposition of sysout datasets be set for an entire jobstream?
What are some jcl statements that are not allowed in procedures?
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?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
Why block size is multiple of lrecl in jcl?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
What is the function of job statement in jcl?
How to pass the parameter in parm using linkage section ? (syntax)?