Here's the DB2 Stored Procedure based code attached.
Notes:
- I take advantage of the /QNTC filesystem to write the PDF and CDV files to an archive in a windows share. This means that the UserId/Password of the AS400 session (i.e. the ODBC DataSource) must match a Win32 domain UserID and Password that has access to write to the Archive share.
- Instead of using stored procedure, the 'MoveMember' could easily be embedded into a UBE by assembling the CL commands into a string and then invoking them with the System() command.
- I have also made a customisation to P986110B (Work with Server) so that if the user uses the View PDF/CSV row exit, it seamlessly retrieves from the Archive share.
- You need to add a UDC to 98|JS for the A "Archived" status.
- None of this is necessary from 8.10 onwards. You only need this nonsense of you are on OneWorld, Xe or ERP8.
- Use this at your own risk - I take no responsibility for it!
- Do not redistribute this in code for sale, or free code used to promote or schill other products
- If you use this code, please acknowledge the author
- udf_Date2OWJulian code courtesy of Chris Wenslick, Slik Software, developer of the superb Slik application.
Cheers,
JohnO