Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
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: 6967
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us