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: 6966
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 recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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