View previous topic :: View next topic
|
Author |
Message |
nitin_agr
New User
Joined: 06 Sep 2005 Posts: 28 Location: Minneapolis US
|
|
|
|
Hi Friends;
Can anybody help me to identify empty data set within JCL.
My requirement is like, I want to execute a step only if a particular data set is non empty.
Please assit me, if anyone can provide sample code than it will be gr8.
Thanks and Regards |
|
Back to top |
|
|
nitin_agr
New User
Joined: 06 Sep 2005 Posts: 28 Location: Minneapolis US
|
|
|
|
Hi Friends;
I got the answer after having a little R&D on ICETOOL.
Thanks a lot. |
|
Back to top |
|
|
sathish_rathinam
New User
Joined: 22 Aug 2005 Posts: 59 Location: india
|
|
|
|
HI nitin_agr,
TRY OUT
SYSIN DD *
PRINT(DATASET NAME)
COUNT(1)
AFTER THT USE
IF RC = 12
execute STEP 1( if dataset is empty)
else
execute step 2 (if dataset is not empty)
endif
regards,
sathish |
|
Back to top |
|
|
gangas
New User
Joined: 20 Jul 2005 Posts: 14
|
|
|
|
just open that gdg and selcect that version give it "V" or "B" or "E'
if it i empty data set it will give empty on righthand side corner |
|
Back to top |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
Back to top |
|
|
|