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

FINDREP before JOIN


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

New User


Joined: 20 Feb 2023
Posts: 11
Location: us

PostPosted: Tue Mar 03, 2026 7:48 pm
Reply with quote

Hello -

I am attempting to perform a FINDREP within my F1 dataset prior to my JOIN. For example:

F1 = 1X1X1X....
F2 = 121212....

My goal is a FINDREP(IN=C'X',OUT=C'2') on F1 prior to the join. I attempted both an INREC FINDREP before my JNF1CNTL (resulted in no match) and the FINDREP within the control card (resulted in a syntax error):

Code:

//JNF1CNTL DD *
     INREC BUILD=(1,16,FINDREP=(IN=C'X',OUT=C'2'),C';',
                  1,16)


I am looking for a result to include both the pre and post FINDREP data:

1X1X1X;121212 (followed by the F2 data from the JOIN)

Would appreciate any suggestions!
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2286
Location: USA

PostPosted: Tue Mar 03, 2026 8:16 pm
Reply with quote

RTFM:

FINDREP parameter is applied to the whole record only. It cannot be coded inside of BUILD - there must be SORT syntax error message which you try to hide from us!

CHANGE parameter can be applied to a particular field of the record.
Back to top
View user's profile Send private message
jimsnow

New User


Joined: 20 Feb 2023
Posts: 11
Location: us

PostPosted: Tue Mar 03, 2026 8:34 pm
Reply with quote

I have, forgive me for missing this in the 3 page manual. Thank you for your help.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1442
Location: Bamberg, Germany

PostPosted: Tue Mar 03, 2026 11:59 pm
Reply with quote

You can limit the use of FINDREP with STARTPOS and ENDPOS. That is perhaps what you also intended to do.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts DFSORT Join Keys Controlcard DFSORT/ICETOOL 4
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Add condition to a FINDREP SORT card DFSORT/ICETOOL 4
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Join multiple records using splice DFSORT/ICETOOL 7
Search our Forums:


Back to Top