How to identify where file is empty or not? How many ways are
there to identifying?
Answer Posted / bala
1) Use IDCAMS
SYSIN DD *
PRINT INDATASET(file name) COUNT(1)
gives RC 04 if the file is an empty file.
2)Compare the file with a known empty file using IEBCOMPR
utility. Comparing two empty files gives Nonzero RC
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How to do automated restart when a job abend?
Explain how can a jobs execution priority be modified?
How can an in-stream dataset be terminated?
List the various advantages of using jcl language?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
In sms datasets, what is the function of the dd mgmtclas keyword?
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
Can we use DISP=SHR in output file in JCL
what is the JCL statement consists of?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
How do you create a temporary dataset?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
what is use of disp parameter in dd statement?
Name a few IBM utility programs, and explain its function.