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

VSAM and Sort


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Aug 08, 2007 6:01 pm
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 Developer


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

PostPosted: Wed Aug 08, 2007 8:02 pm
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

Moderator Emeritus


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

PostPosted: Thu Aug 09, 2007 1:30 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top