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 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
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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