Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: jonathanmIs it possible to access the contents of a result data set within a BRAIN script?
I need to access a specific job on the iSeries and have put together a group of nodes that will extract the jobs identifying characteristics (Job Name, Job Number and User ID) and populate a result set.
I now need to retrieve these details from the data set so that I can build up a string to be run using a DB Execute node. I have tried adding the result set (which only contains 1 record) as an input to the DB Execute node, but get an error "
Parameter "SpoolFile" is not defined" for the following statement:
cmdStr = "CPYSPLF FILE(" + trim(SpoolFile) + ") TOFILE(QGPL/SPLF132) JOB(" + JobNo + "/" +
trim(User) + "/" + trim(JobName) + ") SPLNBR(*LAST)"
Is there any way of doing this in this node? If not I'll have to write a program to do it on the server, but would like to avoid that as it means having to go through the rigmarole of testing, documenting and deploying as it's a Production machine.
Thanks
Jonathan