IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to check no. of records in file and set RC?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kanisha_prabha

New User


Joined: 10 Mar 2006
Posts: 26

PostPosted: Tue Jun 19, 2007 9:33 am
Reply with quote

Hi, I have files that should be zipped if no. of records in file is greater than 10,000. This needs to be done with the help of a JCL (no COBOL programs allowed). Is there any way to determine (using REXX or JCL utilities) whether the file has no. of records greater than 10,000? And based on that can I code in the next step the zip utility?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Jun 19, 2007 9:42 am
Reply with quote

Kanisha,

Download sorttrck.pdf from the follwing link and use the topic Set RC=12 or RC=4 if file is empty, has more than n records, etc.

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Jun 19, 2007 9:54 am
Reply with quote

Hi Murali,

The link is not working. Is it possible to attach the PDF itself?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Jun 19, 2007 10:06 am
Reply with quote

Parikshit,
Copy the link into the browser and remove [/b] at the end of the link. Sorry about the same.
Back to top
View user's profile Send private message
kanisha_prabha

New User


Joined: 10 Mar 2006
Posts: 26

PostPosted: Tue Jun 19, 2007 10:32 am
Reply with quote

Murali,
Thanks a lot for the document. It works! icon_smile.gif

- Kanisha
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 19, 2007 1:52 pm
Reply with quote

Hello,

Why not just zip the file regardless of size?

If you send it zipped some of the time and uncompressed some of the time, the process on the target requires a run-time decision every time.

Consistency is much better.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jun 19, 2007 9:00 pm
Reply with quote

Murali,

Whenever you post the link to the Tricks page, please use this URL:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

The URL you get by copy and paste from the page can change from time to time depending on how IBM changes its servers, so it may work for a while and then not work later. The URL above will always work.

I've corrected the URL in your post.

Thanks.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top