|
Steve - are you saying that RA12, RAB12, RABC12 belong to one group? If so, would that mean that the "RA" & "12" have to be in the model number (but NOT necessarily conjoined)? I f that is also correct, what is the smallest size of the first node? In your example, that would be 2 (RA)? Could you give a COUPLE of examples of what model numbers would be deemed as groups? Alan Shore NBTY, Inc (631) 244-2000 ext. 5019 AShore@xxxxxxxx Alan Shore NBTY, Inc (631) 244-2000 ext. 5019 AShore@xxxxxxxx steema@diskhaven. com Sent by: To rpg400-l-bounces@ "RPG programming on the AS400 / midrange.com iSeries" <rpg400-l@xxxxxxxxxxxx> cc 06/01/2006 02:45 Subject PM Re: Concatenate two strings spacing issue Please respond to RPG programming on the AS400 / iSeries <rpg400-l@midrang e.com> I have a similar issue. We have a model number that can be up to 7 positions. The format is Character(s), number(s). Then there could be an appendage to it, that would denote a color, that would always be a char. So a radio for example, would be say, RA12 in a color of white it would be RA12W. I am displaying info in a subfile for models, but now they want to see, all the related records, i.e. the RA12W's. OF course, I can move the field and find my pattern of Char, num, char. But then I have to do this routine for RA12, RAB12, RABC12. Instead I would like to know first, how many positions of the model fiels are inhabited, and use a simple logic to pursue locating the related records. Steve.
You want to do something Like this Eval CATFIELD = %TRIM(FIELD1) + %TRIM(FIELD2) Michael Ala EDI Service Line Leader BP Lubricants USA Inc. **************************************** -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
-- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.