Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Identify blank/empty data set within JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
nitin_agr

New User


Joined: 06 Sep 2005
Posts: 28
Location: Minneapolis US

PostPosted: Mon Sep 19, 2005 11:07 pm    Post subject: Identify blank/empty data set within JCL
Reply with quote

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
View user's profile Send private message

nitin_agr

New User


Joined: 06 Sep 2005
Posts: 28
Location: Minneapolis US

PostPosted: Mon Sep 19, 2005 11:39 pm    Post subject:
Reply with quote

Hi Friends;

I got the answer after having a little R&D on ICETOOL.

Thanks a lot.
Back to top
View user's profile Send private message
sathish_rathinam

New User


Joined: 22 Aug 2005
Posts: 59
Location: india

PostPosted: Tue Sep 20, 2005 10:29 am    Post subject:
Reply with quote

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
View user's profile Send private message
gangas

New User


Joined: 20 Jul 2005
Posts: 15

PostPosted: Fri Sep 23, 2005 2:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Fri Sep 23, 2005 3:00 pm    Post subject: Re: Identify blank/empty data set within JCL
Reply with quote

Hi,
This topic is discussed earlier, search the forum before posting.
Here is one for your reference
http://ibmmainframes.com/viewtopic.php?t=4864&highlight=empty+dataset
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us