IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SORT on VSAM files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

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

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

Global Moderator


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

PostPosted: Thu May 21, 2009 6:07 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top