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: 1784
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: 7314

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 Data security erase on RAID device steve-myers All Other Mainframe Topics 0 Sat Jan 13, 2018 6:41 am
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Append the milliseconds to the data s... girishb2 DFSORT/ICETOOL 1 Thu Dec 21, 2017 9:07 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm

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