MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » October 2012

RE: SQL equivalent for DDS?



fixed

James-

Do you have System I Navaigator? It can generate the SQL script for you.

Otherwise:

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.


-Tom Stieger
IT Manager
California Fine Wire



-----Original Message-----
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?

--
JHHL
--
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,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact