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
 
SORT on VSAM files

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

New User


Joined: 19 May 2009
Posts: 9
Location: Spain

PostPosted: Thu May 21, 2009 5:58 pm    Post subject: SORT on VSAM files
Reply with quote

I've got 2 main questions today about VSAM files...

1) Is it possible to SORT FIELDS (by JCL) directly from a VSAM file? or do I need to copy the VSAM into a sequential file by REPRO (and then sort)?

2) I need also to update some information in a VSAM file, so... in a Cobol program... can I rewrite a VSAM file?

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

expat

Global Moderator


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

PostPosted: Thu May 21, 2009 6:00 pm    Post subject:
Reply with quote

Yes & Yes
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu May 21, 2009 6:07 pm    Post subject:
Reply with quote

Quote:
1) Is it possible to SORT FIELDS (by JCL) directly from a VSAM file? or do I need to copy the VSAM into a sequential file by REPRO (and then sort)?
VSAM files can be INPUT and OUTPUT to DFSORT.
Sort Tricks talks about loading and unloading VSAM files.
There are many examples of VSAM sorts/copies/loads in the forum.

Quote:
2) I need also to update some information in a VSAM file, so... in a Cobol program... can I rewrite a VSAM file?
you can rewrite a vsam record.
suggest you read the appropriate COBOL manual for your site List of All COBOL documents at IBM library server
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 BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

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