Do you have System I Navaigator? It can generate the SQL script for you.
JOIN ARFBEXLNRS ON U01095 = DIGITS(ARFBEX)||DIGITS(ARFBLN)||DIGITS(ARFBRS)
Should work, but you might need to use CHAR() instead if you don't want leading zeros.
California Fine Wire
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of James Lampert
Sent: Wednesday, October 03, 2012 12:47 PM
To: Midrange Systems Technical Discussion
Subject: SQL equivalent for DDS?
In an experimental study for my research project on substituting a join for a PF:
I have the following in a join logical's DDS:
. . .
JFLD(U01095 ARFBEXLNRS) . . .
ARFBEXLNRS CONCAT(ARFBEX ARFBLN ARFBRS)
. . .
where U01095 is a zoned decimal field in our "stub" PF, and ARFBEX, ARFBLN, and ARFBRS are zoned decimal fields in the "native" file, whose values, concatenated together, match up with U01095.
How would I do the equivalent in an SQL join view?
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l