MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

record count

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
stansaraczewski
Beginner


Joined: 06 Sep 2006
Posts: 44
Topics: 13
Location: Southern California

PostPosted: Thu Aug 20, 2009 12:15 pm    Post subject: record count Reply with quote

I've got a request to not send a file via ftp in a jobstream if it is empty, but to skip the send.

I have an assembler program that reads the catalog for VSAM files and works, but it doesn't work for a SAM file.

Where can I find record count for a SAM file so that I can set a CC to skip the ftp step ?

Or - is there a preferred method in MVS to accomplish this ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Thu Aug 20, 2009 12:43 pm    Post subject: Reply with quote

stansaraczewski,

Look at the smart DFSORT trick "Set RC=12 or RC=4 if file is empty, has more than n records, etc" here

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
stansaraczewski
Beginner


Joined: 06 Sep 2006
Posts: 44
Topics: 13
Location: Southern California

PostPosted: Thu Aug 20, 2009 3:29 pm    Post subject: Reply with quote

Perhaps this may work with another sort product - I don't think we are using dfsort.

Thank you for the idea.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Thu Aug 20, 2009 4:10 pm    Post subject: Reply with quote

stansaraczewski,

You can try one of the approach listed here

http://www.mvsforums.com/helpboards/viewtopic.php?p=5977#5977
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Aug 21, 2009 1:29 am    Post subject: Reply with quote

IDCAMS PRINT will do it, print one record and if the record is printed you get RC0, if no records to print RC4.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
stansaraczewski
Beginner


Joined: 06 Sep 2006
Posts: 44
Topics: 13
Location: Southern California

PostPosted: Fri Aug 21, 2009 8:28 am    Post subject: Reply with quote

Another good solution... thanks for it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group