calling a Dream Writer from within an RPG program

cgraves

Active Member
Can I call/submit a dream writer from within an RPG program, passing the necessary data selection criteria?
 
Chuck,

You might look at the P032002, Customer Ledger Inquiry-with SQL, since it builds a dream writer from the on screen data selection and submits a dream writer that has customized data selection. It uses the P98321 program to receive and build the data selection. We have a couple of processes that use this function.
 
You would probably need to also send Version & Program name thru the calling program's Processing Options. Since the Data Selection, etc., for any program are stored in tables, they are manipulatable (is that a word?). It's a bit of work to create the program to accept the criteria and change the right tables, fields, but it can be done. Nothing out of the JDE box as far as I know.
 
Back
Top