How to test thru JCL if any file(PS or VSAM) is empty or
not. I do not want to use any COBOL prog or Ezytrieve and
want to do using utility.
Answer Posted / manid
//STEP1 EXEC PGM=IDCAMS
//DD1 DD DSN=FILE1
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT INFILE(DD1) COUNT(*)
/*
IF STEP1 RETURNS RC=4 THEN FILE1 IS EMPTY FILE
I HOPE THIS WILL HELP YOU
Thanks
ManiD
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How does jcl act on code(if you take a cobol program)?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
what is use of disp parameter in dd statement?
For what purpose steplib and joblib are used ?
What is catelog procedure and how many catelog procedure to use in one job?
Explain the job statement in jcl?
write a jcl to execute a job by 7:00 am on jan 20,1986?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
What is Cataloged Procedures?
Explain the function of job statement in jcl?
Is automatic restart possible in jcl?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
How gdg are concatenated?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
Explain how can values be passed from the job stream to an executable program?