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
 

 

Need to get records from input file depnding upon two fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need to get records from input file depnding upon two fields
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    Post subject: Re: Need to get records from input file depnding upon two fi
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    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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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