View previous topic :: View next topic |
Author |
Message |
stansaraczewski Beginner
Joined: 06 Sep 2006 Posts: 44 Topics: 13 Location: Southern California
|
Posted: Thu Aug 20, 2009 12:15 pm Post subject: record count |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
kolusu Site Admin
![Site Admin Site Admin](images/ranks/adminpic.jpg)
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
stansaraczewski Beginner
Joined: 06 Sep 2006 Posts: 44 Topics: 13 Location: Southern California
|
Posted: Thu Aug 20, 2009 3:29 pm Post subject: |
|
|
Perhaps this may work with another sort product - I don't think we are using dfsort.
Thank you for the idea. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
kolusu Site Admin
![Site Admin Site Admin](images/ranks/adminpic.jpg)
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
expat Intermediate
![](images/avatars/gallery/members/Ted.jpg)
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Fri Aug 21, 2009 1:29 am Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
stansaraczewski Beginner
Joined: 06 Sep 2006 Posts: 44 Topics: 13 Location: Southern California
|
Posted: Fri Aug 21, 2009 8:28 am Post subject: |
|
|
Another good solution... thanks for it. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|