Hi,
We use the Valence login method, but with Kerberos, and our users' jobs run under their own System i userids.
I have an app making an AJAX call to an RPG pgm that runs some business logic, creates a spool file and then, via QCMDEXC , runs a command to convert the spool file to a pdf file on the IFS. (SPL2STMF) This command requires a Job#, UsrPrf, and Job Name to identify the appropriate spool file for conversion. Problem is... when I retrieve these attributes from the program status data structure within the pgm, it's pulling the QTMHHTTP user and number associated with the VALENCE job rather than the job attributes that are associated with the generation of the spooled file.
I have code that I routinely use to identify the "real" user via the vvUtility_getSessVar procedure so I can get the user but I don't know how to get the Job# and Job Name to populate the rest of the SPL2STMF command.
I don't want to do a SBMJOB for the spool file program because, after the file (PDF) is created on the IFS, I'm pulling it up in a window on the front end for the user to view so I really need the front end to wait to make sure the file was created before I try to display it.
I'm wondering if I'm going about this the wrong way... any suggestions?
Thanks!
Eva
We use the Valence login method, but with Kerberos, and our users' jobs run under their own System i userids.
I have an app making an AJAX call to an RPG pgm that runs some business logic, creates a spool file and then, via QCMDEXC , runs a command to convert the spool file to a pdf file on the IFS. (SPL2STMF) This command requires a Job#, UsrPrf, and Job Name to identify the appropriate spool file for conversion. Problem is... when I retrieve these attributes from the program status data structure within the pgm, it's pulling the QTMHHTTP user and number associated with the VALENCE job rather than the job attributes that are associated with the generation of the spooled file.
I have code that I routinely use to identify the "real" user via the vvUtility_getSessVar procedure so I can get the user but I don't know how to get the Job# and Job Name to populate the rest of the SPL2STMF command.
I don't want to do a SBMJOB for the spool file program because, after the file (PDF) is created on the IFS, I'm pulling it up in a window on the front end for the user to view so I really need the front end to wait to make sure the file was created before I try to display it.
I'm wondering if I'm going about this the wrong way... any suggestions?
Thanks!
Eva
Comment