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 / vani
By IDcams its is possible
// STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//FILE1 DD DSN=INPUT-FILE,DISP=SHR
//SYSIN DD *
PRINT INFILE(FILE1)
DUMP COUNT(1)
/*
IF THE FILE IS EMPTY JCL GIVES RC=4
| Is This Answer Correct ? | 21 Yes | 6 No |
Post New Answer View All Answers
Name a few IBM utility programs, and explain its function.
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
which utility is used a dummy utility?
how do you access an uncataloged dataset in a jcl?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Explain how can a stopped job be started again?
how can the same proc be re-used and called by many jobs?
What are the rules employed while naming the steps in a job?
What is use of restart and how to use it?
Describe the various parameters utilized in the creation of a gdg?
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 statement can be used to send data to another mvs jes3 node?
What is the purpose of the dd keylen parameter?
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
what is the use of JCL?