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
 
Copy some records of VSAM file to a flat file

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

New User


Joined: 23 Jun 2008
Posts: 15
Location: bangalore

PostPosted: Thu May 28, 2009 12:43 pm    Post subject: Copy some records of VSAM file to a flat file
Reply with quote

Hi

I have a KSDS file. I want to search this File based on some criteria and the records that fulfill the criteria should be written to a flat file.
Can you help me on this?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 28, 2009 12:50 pm    Post subject:
Reply with quote

Your SORT product will do this for you.

Please search the DFSORT & JCL forums for numerous examples.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10309
Location: italy

PostPosted: Thu May 28, 2009 12:50 pm    Post subject: Reply to: Copy some records of VSAM file to a flat file
Reply with quote

not the way the question is posed
You can use Your sort product ( dfsort or syncsort )

there are lots of samples around using the INCLUDE/OMIT sort facility
search the forums using for example "VSAM KSDS SORT" checking the box search for all terms
Back to top
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Thu May 28, 2009 12:50 pm    Post subject:
Reply with quote

You can use FILEAID or SORT utilities for this.If you want to do it in online mode then i think FILEAID will be the useful option.For batch you can give INCLUDE COND and criterias in sort card to filter the records.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu May 28, 2009 1:22 pm    Post subject:
Reply with quote

bipinpeter,

ONLINE mode refers to something like CICS.

what you mean is FOREGROUND - interactively in a TSO Session
as apposed to BACKGROUND - meaning batch.
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

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