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
 
Can DFSORT be used to extract particular records from VSAM ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
nankrish

New User


Joined: 11 Nov 2005
Posts: 26

PostPosted: Tue Jun 26, 2007 3:43 pm    Post subject: Can DFSORT be used to extract particular records from VSAM ?
Reply with quote

Hi,

I have a VSAM file. I would like to extarct the records which have a value 'TTT' in a particular field.

INPUT:
---------
ABCDTTTEFGHI
AVBASASDFWER
AFSDFWERWERR
ASDFTTTWERRE

OUTPUT:
---------

ABCDTTTEFGHI
ASDFTTTWERRE

Will the same sortcard i'm using currently for a sequentaail file can be used for the VSAM file?

Thanks,
Ramesh.
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 26, 2007 3:55 pm    Post subject:
Reply with quote

Quote:
Will the same sortcard i'm using currently for a sequentaail file can be used for the VSAM file?

Yes
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 26, 2007 7:41 pm    Post subject:
Reply with quote

Quote:
Will the same sortcard i'm using currently for a sequentaail file can be used for the VSAM file?


It depends. DFSORT can treat VSAM data sets as either variable-length or fixed-length. You have to tell DFSORT which to use depending on whether the VSAM records are all the same length (fixed) or not (variable). For more details, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/1.8.3.4?SHELF=&DT=20060615185603&CASE=
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 How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
No new posts MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Not able to export the VSAM cluster sandeep kumar302 JCL & VSAM 6 Fri May 04, 2018 12:42 pm
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 12 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm

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