I searched the forums and looked through the 7.6.1 Maintain manuals but couldn't find anything that confirms if Maintain data source stacks can't contain identically named fields from different segments in a master.
For example, I have a master "jobs".
FILENAME=ELEMENTS, SUFFIX=FOC , $
SEGMENT=JOB, SEGTYPE=S1, $
FIELDNAME=NAME, USAGE=A8,
TITLE='Job Name', $
FIELDNAME=FREQ, USAGE=A1,
TITLE='Job Freq', $
FIELDNAME=DESC, USAGE=A150V,
TITLE='Job Description', $
SEGMENT=FILE, SEGTYPE=S1, PARENT=JOB, $
FIELDNAME=NAME, USAGE=A36V,
TITLE='File Name', $
FIELDNAME=DESC, USAGE=A150V,
TITLE='File Description', $
In the MDE I use the Stack Editor to create a new data source stack named stkFiles. I select the NAME field in the FILE segment. This puts the NAME field from the JOB segment plus NAME and DESC from the FILE segment into the right hand window and this looks correct. I also see the command that will be generated:
Infer elements.FILE.NAME into stkFiles;
When I click OK, though, the command that's put into my Maintain procedure is:
Infer elements.JOB.NAME into stkFiles;
It seems that Maintain is getting confused because of the identically named fields in the 2 different segments.
I've also just tried entering the Infer statement manually as:
infer elements.JOB.NAME elements.FILE.NAME into stkFiles;
When I look at stkFiles in the Project Explorer I only see 3 fields, NAME, DESC, and FREQ. So it seems that Maintain won't see the other NAME and DESC fields in the FILE segment.
I'm just wondering if someone can verify that what I'm seeing here is true. I guess I'll have to make sure all my fields in this master have unique names no matter if they're in different segments.
Thanks!
FOCUS 7.7.03
WebFOCUS 8.0.x/8.1
z/OS, Windows