Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Syncsort for field to field comparision

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
Deepti_R

New User


Joined: 07 Nov 2019
Posts: 2
Location: USA

PostPosted: Thu Nov 07, 2019 11:04 pm    Post subject: Syncsort for field to field comparision
Reply with quote

Hello everyone,
I'm trying to compare the values at different positions in the file and if the value matches then overlay. Instead of hard coding the value can I compare the values at the positions? If I hard code as

OUTREC IFTHEN=(WHEN=(6,6,CH,EQ,C'111111'),
OVERLAY=(40:C'999999')) then this works file

but instead of hardcoding 111111 if I mention I position then it gives error,

OUTREC IFTHEN=(WHEN=(6,6,CH,EQ,40,6) --- > INCLUDE/OMIT INVALID FORMAT
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


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

PostPosted: Fri Nov 08, 2019 12:18 am    Post subject:
Reply with quote

Try this.
Code:
OUTREC IFTHEN=(WHEN=(6,6,CH,EQ,40,6,CH),OVERLAY=(40:C'999999'))
Back to top
View user's profile Send private message
Deepti_R

New User


Joined: 07 Nov 2019
Posts: 2
Location: USA

PostPosted: Fri Nov 08, 2019 12:51 am    Post subject:
Reply with quote

Thanks, it worked..icon_smile.gif
Back to top
View user's profile Send private message
sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 603
Location: Maryland

PostPosted: Fri Nov 08, 2019 2:01 am    Post subject: Re: Syncsort for field to field comparision
Reply with quote

Deepti_R wrote:
Hello everyone,
I'm trying to compare the values at different positions in the file and if the value matches then overlay. Instead of hard coding the value can I compare the values at the positions? If I hard code as

OUTREC IFTHEN=(WHEN=(6,6,CH,EQ,C'111111'),
OVERLAY=(40:C'999999')) then this works file

but instead of hardcoding 111111 if I mention I position then it gives error,

OUTREC IFTHEN=(WHEN=(6,6,CH,EQ,40,6) --- > INCLUDE/OMIT INVALID FORMAT


WHEN=(6,6,CH,EQ,40,6,CH)
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SECTION BASED ON FIELD speermb DFSORT/ICETOOL 10 Mon Jun 17, 2019 9:41 pm
No new posts Send text at cursor position on an IS... Domenic Ailati CLIST & REXX 10 Sun Jun 02, 2019 7:34 am
No new posts Display Signed ZD field socker_dad DFSORT/ICETOOL 11 Thu Feb 28, 2019 1:17 am
No new posts LRECL in syncsort frozenblood87 SYNCSORT 4 Tue Feb 19, 2019 6:50 am
No new posts DB2 Timestamp field weird behaviour. rizwanaccy DB2 8 Wed Dec 26, 2018 4:33 pm

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