Subscribe to keep this site alive! Under new management but as always, still 100% FREE. Anyone with the IBM i is a friend of ours.
The Challenge: The software only provides this as the XML declaration:
<?xml version="1.0"?>
My trading partner requires me to send this:
<?xml version="1.0" encoding="ISO-8959-1" standalone="yes"?>
The Solution: The XML declaration is one layer beyond the envelope, cXML. Hence, the only way to do this is by using a post communication user exit. We need to modify the file in the IFS the prior to the running of the FTP scripts.
Setup the user exit program (P4PSTCOMX2.CLP) in the network configuration under post communication.
In the P4PSTCOMX2 CLP, loop thru the USUBSSN API to extract the sub-sessions based on the master session number from the software.
In the P4XMLATTR RPG program, assemble the location of the file temporarily sent to the IFS before running the scripts. The Network and Session Number (File name) is pass in *ENTRY but Job Number coms from the Program Status Data Structure.
Do you have a new CHALLENGE? Let us know HERE.