Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
IDCAMS - Filtering data on columns for PS files like SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sayferoz

New User


Joined: 10 Feb 2013
Posts: 1
Location: India

PostPosted: Fri Mar 15, 2013 9:01 pm    Post subject: IDCAMS - Filtering data on columns for PS files like SORT
Reply with quote

Hi All,
Hope life is busy in enjoying work and personal life.
My requirement is generate file name (like PAB.DYYMMDD will be PAB.D130101) and filter records for a particular account from it. This I am doing in two steps:

Step 1: Use IDCAMS IDS('Dynamically generated file name') and copy it another OUT file
Step 2: Give OUT file as input to SORT and filter them based on account number and date.
This is working perfectly fine. Only issue is that file contains more than 200M records and I have to process 10-12 such files, which is cubersome from resources point of view.

How can I achieve my requirement in single IDCAMS or SORT / ICETOOL Process? Can I supply dynamically generated file name to SORT as like I am doing STEP 1 or can I use IDCAMS to filter records like SORT?

One option could be generating dynamic JCL in COBOL or use INTRDR which I can't do due to limitation of site.
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1777
Location: Bloomington, IL

PostPosted: Fri Mar 15, 2013 9:14 pm    Post subject:
Reply with quote

Can you use the SUBMIT command from background TSO?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Sat Mar 16, 2013 2:05 am    Post subject: Reply to: IDCAMS - Filtering data on columns for PS files li
Reply with quote

Perhaps investigate dynamic file allocation with Cobol, and an "EXIT" program (which can be in Cobol) for your Sort product.

Sort can read and format, with the EXIT doing the output itself.

Perhaps you could even have an input EXIT, which allocates the dynamic DSN for SORTOUT, but with a COPY operation maybe the SORTOUT is already open.

Perhaps, then, look at doing an "internal SORT" in Cobol, where you allocate the DSN before doing the SORT. Ensure that you have compiler option FASTSRT and obey the manual for how to code the SORT to ensure that SORT does all the IO. This could work for DFSORT, but you'd have to check your SyncSort documentation if that is what you have.

If you want to consider this route, tell us which SORT product you have and the topic can be moved to the DFSORT or JCL (if SyncSort) forum.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us