Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 397
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: 1786
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: 7315

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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us