April 10, 2008, 11:04 AM
John_EdwardsCan Maintain work with XML master files?
I have a Maintain application that needs to function with an XML master file. The developer interface parses it correctly and I get the inferred stack with all of its fields, but when I attempt to deploy I get a vanilla error indicating there was a problem parsing the master file.
Are xml master files ok with Maintain? I only want to read, not write to the xml.
Thanks,
John
April 10, 2008, 11:31 AM
Maintain WizardJohn
Maintain currently does not support XML files. However, can Table read the file? The easiest thing to do would be to EXEC a Table to get the data and bring it back into the Maintain procedure. Just COMPUTE the fields that you need into a stack in the Maintain procedure.
So you would have:
COMPUTE STK.FIELD1/fmt;
COMPUTE STK.FIELD2/fmt;
EXEC GETDATA INTO STK
Then your GETDATA procedure would be:
TABLE FILE xmlfile
PRINT FIELD1 FIELD2
ON TABLE PCHOLD
END
-RUN
Let me know if you have any questions or problems.
Mark