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

Need to get records from input file depnding upon two fields


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mrdilipchand

New User


Joined: 20 Feb 2007
Posts: 12
Location: banglore

PostPosted: Thu May 24, 2007 7:52 pm
Reply with quote

I need to extract records from input vsam file into output file depending upon two fields.

If the values of two fields are different then we need to write into output file.

Regards,
Dilipchand.
Back to top
View user's profile Send private message
bansal

New User


Joined: 03 Jan 2007
Posts: 27
Location: Hyderabad

PostPosted: Thu May 24, 2007 8:28 pm
Reply with quote

Hi Dilip,

You can easily do it by a sort card(SYSIN).

Use the include condition and match the values of both the fields, if they are different then only select that record for the output.

Like this

INCLUDE COND= (2,2,CH,NE,5,2,CH)

Assume first field is of 2 characters starting from 2nd bytes and second field starts from 5th position and it is also of 2 bytes.

So the above will select the your desired records and write those records into the output VSAM file.

Hope the above will help..
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top