|
Whqat exactly is the layout of the parts master file? If the key field(s)
contain the various 'levels' you could use a partial key to delete the
associated sublevels.
Terry Richardson
Vermont Information Processing, Inc.
terry@vtinfo.com
RReddy@medicalart
spress.com To: RPG400-L@midrange.com
Sent by: cc:
rpg400-l-admin@mi Subject: Advice, urgent
drange.com
09/10/2001 09:54
AM
Please respond to
rpg400-l
Hello All.
I have the following problem.
There is a parts master file and each part have its own sublevels and each
of these sublevels could have its own sublevels.
For example.
Part P1 has 3 levels
a) logo
b) Color
c) Imprint
Now i could have SubLevels for the option (b) like this
Color has 3 levels
b.1) Position
b.2) Color Imprint
b.3) Cut Size
And also i could have Sublevels within this Sublevels.
What i am trying to store all the part levels with its sublevels into an
array like this
Array Index Value
1 Logo
2 Color
3 Position
4 Color Imprint
5 Cut Size
6 Imprint
And the reason for me to store into an array because lets say the user
wants to delete the color option from the part, I need to delete all the
sublevels with the color options including sublevels within sublevels.
Please advice how can i do this in RPG or RPGLE and remember each sublevels
could have its sublevels and so on.
Thanks Again.
Reddy
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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.