I have a need to create a Flat File then feed it into the SMP process. The XML points to a SMPMCS.pax.Z file and the actual files are: SMPPTFIN/2006164151512115941.1of4, SMPPTFIN/2006164151512115941.2of4, etc. so the newname= process can't find the files. So far all my varous XML constructs have failed. It's possible "I cant get there from here", but I have to believe there is some way to get the file contstruted -- multi-
file or not.

Yes, you can get there from here. Let me use a simple example to explain how. Below is a simplified snippet of the GIMPAF.XML file (I've snipped much of the gorp that is not relevant for this discussion):

GIMPAF.XML:
<ARCHDEF
name="SMPPTFIN/S0001.SHOPD.S0033571.SMPMCS.pax.Z"
type="SMPPTFIN">
<ARCHSEG
name="SMPPTFIN/2006164151512115941.1of2">
</ARCHSEG>
<ARCHSEG
name="SMPPTFIN/2006164151512115941.2of2">
</ARCHSEG>
</ARCHDEF>

In this example the single very large logical SMPPTFIN archive file has been split into two physical segments. To create a flat file from the logical archive you use GIMUNZIP like so:

<GIMUNZIP>
<ARCHDEF
name="SMPPTFIN/S0001.SHOPD.S0033571.SMPMCS.pax.Z"
newname="MY.FLATFILE.SMPMCS">
</ARCHDEF>
</GIMUNZIP>

Notice the input name is of the logical archive file and not of the individual physical archive segment files. GIMUNZIP will read the GIMPAF.XML file to find out the name of the component segment files and will then reconstruct the whole from the pieces.

By the way and once again, you really do not need to create a flat file to feed into your SMP/E process. You can use the RECEIVE FROMNTS command to do the receive directly from the package directory into your global zone and SMPPTS.

Kurt Quackenbush -- IBM, SMP/E Development

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to