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 / sivakumar
Use comparex/ISRSUPC utility and compare ur file with an
empty file of the same DCB parameter. Retrun code of 28
means the file is empty. return code of 1 means the file is
not empty.
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Which dd parameters are required?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What parameter directs the output of the job log dataset?
How can the attributes of one sms dataset be copied to another dataset?
How to pass data to a program that is coded in an exec statement?
What are hierarchy levels in jcl?
A dd statement consists of 4 fields. Name them?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What dd statement is used to supply the name of a dataset?
What is the purpose of dd * statement in jcl?
How would you understand error(execution phase)?