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: Instead of waiting for a trading partner to send their sample document, we would like to use an existing similar document already in production and has been processed recently.
The Solution: The objective is to : (a) Derive the document from the communication session to a physical file. (b) Send the file to a streamed file in the IFS. (c) Modify the document's envelop and/or other details and send it back to the IFS. (d) And receive using the software's newly configured Trading Partner Relationship.
a.1 Find out the communication session number by option 14 from the Work with Transaction Center Entries screen.
a.2 Find out how long the communication session data is by option 5 from the Work with Communication Sessions screen.
a.3 Create a Physical File using CRTPF with the record length established in a.2.
a.4 Run the SSNCPYPRT command with the communication session number in a.1 and output it to the file created in a.3.
b. Run the CPYTOSTMF command on the populated file in a.4 and specify an existing location in the IFS.
c.1 Download the streamed file in the IFS to a location in the PC workstation where the application to modify the file resides. Update the file.
c.2 Update envelopes (ISA and GS) using a tool in the PC workstation.
c.3 Upload the updated file back to the IFS where the receiving scripts will read the test incoming documents from.
d.1 Create a Trading Partner Relationship that matches the envelope values noted from c.2.
d.2 Receive the document by running receiving scripts. MainMenu> CommunicationsMenu> NetworkSelectionMenu> Pick Network> PerformCommunications
Do you have a new CHALLENGE? Let us know HERE.