How to identify in JCL that an input file is empty without
reading it?

Answer Posted / sivakumar sekharannair

You can use IEBCOMPR
Used to compare two sequential data sets, two partitioned data sets or two PDSEs at the logical record level to verify a backup copy. Fixed, Variable, or undefined records from blocked or unblocked data sets or members can also be compared. However, you should not use IEBCOMPR to compare load modules.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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) ?

1748


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

630


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1485


How do you access an uncatalogued dataset in a jcl?

726


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

780






What are s0c1, s0c4, s0c5, s0c7 and socb?

698


what is the use of IEBGENER utility?

654


Name the statement which can be used to send data to another mvs jes3 node?

602


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

714


What is the format of comment statement?

663


What is NOTCAT ?

738


what is the difference between JES3 and JES2?

677


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

641


how would you create a temporary dataset? And where will you use them?

767


what is a jcl?

686