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
 

 

File matching using specific condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
mf_karthik

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Fri Nov 20, 2015 11:04 pm    Post subject: File matching using specific condition
Reply with quote

I need to compare a flat file with vsam file using a specific key then need to fetch the matched records from flat file only when particular column is spaces in Vsam file.

file matching i'll do with the joinkeys and i would like to know how to fetch the records by a particular condition.
Back to top
View user's profile Send private message

RahulG31

Active User


Joined: 20 Dec 2014
Posts: 338
Location: USA

PostPosted: Fri Nov 20, 2015 11:15 pm    Post subject: Reply to: File matching using specific condition
Reply with quote

You can use the INCLUDE condition on JOINKEYS statement.
Code:
JOINKEYS FILE=F1,FIELDS=(1,5,A),
INCLUDE=(6,1,CH,EQ,Cā€™ ā€™)


.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1641
Location: NY,USA

PostPosted: Fri Nov 20, 2015 11:19 pm    Post subject:
Reply with quote

Are you looking just for include or omit?
https://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.icea100/ice2ca_JOINKEYS_statements.htm
You could have searched over here by yourself ,
http://ibmmainframes.com/viewtopic.php?t=61905&postdays=0&postorder=asc&start=0
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7279

PostPosted: Sat Nov 21, 2015 12:08 am    Post subject: Reply to: File matching using specific condition
Reply with quote

You can specify INCLUDE=/OMIT= on the JOINKEYS statement, but the advice is not to do that:

DFSORT Application Programming Guide wrote:
Although the INCLUDE and OMIT operands are available on the JOINKEYS statement, it is recommended that you specify an INCLUDE or OMIT statement in JNF1CNTL or JNF2CNTL instead for ease of use.
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 Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
No new posts Matching and unmatching records scdinesh DFSORT/ICETOOL 11 Tue Feb 07, 2017 12:41 am
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm


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