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
 
Fetching the records

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

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Mar 30, 2009 3:42 pm    Post subject: Fetching the records
Reply with quote

Hi All,


Below Mentioned is the INPUT DSN which contains the name of files.

Code:
TL7124.TEST1.V823.AMTX.KE.D               
TL7124.TEST1.V823.AMTX.KE.I               
TL7124.TEST1.V823.AM4A.DWH.KE             
TL7124.TEST1.V823.AM4A.DWH.KE.D           
TL7124.TEST1.V823.AM4A.DWH.KE.I           
TL7124.TEST1.V823.ASC1.ARD390.CNTL.CRDS.SE
TL7124.TEST1.V823.ASC2.ASU015.CNTL.CRDS.SE
TL7124.TEST1.V823.ASLM.KE                 
TL7124.TEST1.V823.ASLM.KE.D               
TL7124.TEST1.V823.ASLM.KE.I               
TL7124.TEST1.V823.ASTRG.AGD040.GD         
TL7124.TEST1.V823.ASTRG.AGD040.GD.G0014V00
TL7124.TEST1.V823.ASTRG.AGD040.GD.G0015V00
TL7124.TEST1.V823.ASTRG.AGD040.GD.G0016V00
TL7124.TEST1.V823.ASTRG.AGD041.GD         
TL7124.TEST1.V823.ASTRG.AGD041.GD.G0015V00


The desired OUTPUT requested should have the following

1. All the D/DATA and I/INDEX at the end of the DSN name should not be
picked.
2. All the Generations should be dropped. But the base should be picked.


In our shop we are using SYNCSORT 1.3.1.

Is there any other way of fetching the data?
Back to top
View user's profile Send private message

himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Fri Apr 03, 2009 11:12 am    Post subject:
Reply with quote

Hi All,

Resolved the above iisue using this code.
Scanned the entire data and found the string mentioned in the code are not used by any other records.
This will only work for specific records.

Code:
OPTION COPY                                         
OMIT COND=(1,64,SS,EQ,C'.G00',OR,1,64,SS,EQ,C'.DATA',
           OR,1,64,SS,EQ,C'.INDEX',OR,               
           1,64,SS,EQ,C'KE.D ',OR,                   
           1,64,SS,EQ,C'KE.I ')                     

Thank you!!!
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Apr 03, 2009 11:21 am    Post subject:
Reply with quote

himanshu7
If you have SYNCSORT 1.3 version, then you can use the below sort card, which is logically same as yours, but a smaller one.

Code:
 OPTION COPY                                                           
 OMIT COND=(1,64,SS,EQ,L(C'.G00',C'.DATA',C'.INDEX',C'KE.D ',C'KE.I '))
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Fri Apr 03, 2009 11:30 am    Post subject:
Reply with quote

Thank you Kris...
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm

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