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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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