Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
HOW TO CHECK FOR THE EMPTY DATASET

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 44

PostPosted: Thu Aug 04, 2005 3:39 pm    Post subject: HOW TO CHECK FOR THE EMPTY DATASET
Reply with quote

CAN ANY BODY HELP ME ASAP ..

IS THERE ANY WAY OF CHECKING EMPTY DATASET BEFORE TRANSMITTING IT.....
Back to top
View user's profile Send private message
References
PostPosted: Thu Aug 04, 2005 3:39 pm    Post subject: Re: HOW TO CHECK FOR THE EMPTY DATASET Reply with quote

KMK

New User


Joined: 29 Jul 2005
Posts: 18

PostPosted: Thu Aug 04, 2005 5:20 pm    Post subject:
Reply with quote

You can use SELCOPY to find the empty file
Back to top
View user's profile Send private message
ideas

Active User


Joined: 25 May 2005
Posts: 54
Location: India

PostPosted: Thu Aug 04, 2005 5:20 pm    Post subject:
Reply with quote

use VERIFY cmd.
Back to top
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 44

PostPosted: Fri Aug 05, 2005 7:06 am    Post subject: ATTENTION GUYS
Reply with quote

KMK :-- SELCOPY IS A THIRD PARTY VENDOR AND IT NEED TO BE INSTALL FOR THIS.. SO THIS IDEA FAIL.



IDEAS :-- YOUR IDEA IS GOOD WITH THE VSAM NOT WITH THE NON-VSAM DATASETS....



CORRECT ME IF I AM WRONG
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 141

PostPosted: Fri Aug 05, 2005 7:27 am    Post subject:
Reply with quote

Please search before posting a query, as u can get answers quickly http://ibmmainframes.com/viewtopic.php?t=590&highlight=print+count
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

Active User


Joined: 05 Aug 2005
Posts: 51
Location: chennai

PostPosted: Fri Aug 05, 2005 1:20 pm    Post subject:
Reply with quote

hay help me buddy,

where to implement that verify command to know whether the VSAM file is emply r not

kumar.p.v
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 141

PostPosted: Fri Aug 05, 2005 10:33 pm    Post subject:
Reply with quote

I wud be interested to see a VERIFY cmd find if the VSAM is empty or not, bcos I have never seen that.
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 141

PostPosted: Fri Aug 05, 2005 10:38 pm    Post subject:
Reply with quote

The following can be used for both VSAM and nonVSAM DS, I have copied this from the link shown above.


Code:
//STEP0001 EXEC PGM=IDCAMS
//IN DD DSN=thedataset.to.check,...
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA
PRINT INFILE(IN) COUNT(1)
/*

RC=0 if file has at least 1 record, otherwise RC=4.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3002
Location: Charlotte,NC USA

PostPosted: Mon Aug 08, 2005 4:14 pm    Post subject: Re: HOW TO CHECK FOR THE EMPTY DATASET
Reply with quote

This is another option:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst03.html#t10
Back to top
View user's profile Send private message
ajayvamsi
Currently Banned

Active User


Joined: 21 Jul 2005
Posts: 61
Location: Hyderabad

PostPosted: Fri Aug 12, 2005 1:30 am    Post subject:
Reply with quote

please can anyone tell me where I need to place the verify command in teh JCL
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3002
Location: Charlotte,NC USA

PostPosted: Fri Aug 12, 2005 1:34 am    Post subject: Re: HOW TO CHECK FOR THE EMPTY DATASET
Reply with quote

See the document:

"DFSMS/MVS V1R5 Access Method Services for VSAM Catalogs"

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/3.27?DT=19990113080956
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1