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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to check no. of records in file and set RC?
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: 1439
Location: Bangalore,India

PostPosted: Tue Jun 19, 2007 9:42 am    Post subject:
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.

http://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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Tue Jun 19, 2007 10:06 am    Post subject:
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    Post subject: Re: How to check no. of records in file and set RC?
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

Site Director


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

PostPosted: Tue Jun 19, 2007 1:52 pm    Post subject:
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 Moderator


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

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

Murali,

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

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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