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
 

 

VSAM and Sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
visakhchandran

New User


Joined: 29 Aug 2006
Posts: 1

PostPosted: Wed Aug 08, 2007 5:08 pm    Post subject: VSAM and Sort
Reply with quote

I need a sort solution for the following issue.

I have a VSAM file that contain following data First 7 bytes is the key field, 8th byte is an indicator fiels and 9th field Match indicator field.

&

An Input file having key field ( From 24th position 7 bytes long )and of length (LRECL of the input file ) 5500.


I want to read the first record in my input file, from which the key field is taken and corresponding key field is being searched in the Vsam file and if there is a hit i want to write the input file into it Outfile1 after updating the Match indicator field in Vsam to Y . If there is no hit i want to write that corresponding file to Outfile2. Therefore i want to check for all the input files.
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: Wed Aug 08, 2007 6:01 pm    Post subject:
Reply with quote

This, or a very similar question was asked a while ago, and I gave a solution in REXX to do this.

Please use the search facility to look around for my solution. I'm currently too busy to look for you.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Aug 08, 2007 8:02 pm    Post subject:
Reply with quote

visakhchandran,

Please show an example of the records in each input file and the records you expect in each output file.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 09, 2007 1:30 am    Post subject:
Reply with quote

Hello,

Just confirming i've understood the requirement.

Keys that match cause data to be written to outfile1.

Keys that do not match cause data to be written to outfile2.

Each time data is written to outfile1, the "match indicator" in the record in the existing VSAM file is to be updated.

Please let me know if i've misunderstood.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm


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