Code: |
/* rexx */ /*address TSO*/ parm_jobname = 'XXXXXXXX' activate_SDSF_REXX_support: rc_isf = isfcalls("ON") select when rc_isf = 00 then call set_SDSF_special_variables when rc_isf = 01 then msg_isf = "Query failed, environment not added" when rc_isf = 02 then msg_isf = "Add failed" when rc_isf = 03 then msg_isf = "Delete failed" otherwise do msg_isf = "Unrecognized Return Code from isfCALLS(ON): "rc_isf end end if rc_isf <> 00 then do retcode = rc_isf * 10 signal finish end return set_SDSF_special_variables: isfprefix = parm_jobname isfowner = "*" isfcols = "JNAME TOKEN JOBID QUEUE ESYSID" command = "ST" call search_job return search_job: if debug > 0 then opts_sdsf = "(VERBOSE ALTERNATE DELAYED)" else opts_sdsf = "(ALTERNATE DELAYED)" TRACE 'E' call exec_sdsf "0 ISFEXEC ST" opts_sdsf do ij = 1 to JNAME.0 if JNAME.ij = parm_jobname then do if submit_time <> "" then do if later_time(parm_date,parm_time,DATER.ij,TIMER.ij) = 1 then job_found = "YES" end end if job_found = "YES" then do currtoken = TOKEN.ij job_found = "YES" leave ij end end end exec_sdsf: parse arg max_SDSF_rc exec_SDSF_command if symbol("ISFMSG") = "VAR" then drop isfmsg sdsf = "OK" address SDSF exec_SDSF_command "(VERBOSE ALTERNATE DELAYED)" if (max_SDSF_rc = "*") then return rc if (rc > max_SDSF_rc | rc < 0) then do sdsf = "KO" end return 0 |
Code: |
53 *-* address SDSF exec_SDSF_command "(VERBOSE ALTERNATE DELAYED)" +++ RC(12) +++ 34 +++ do ij = 1 to JNAME.0 25 +++ call search_job 7 +++ call set_SDSF_special_variables Error running SAMPLE2, line 34: Bad arithmetic conversion *** |
Code: |
/* rexx */
/*address TSO*/ parm_jobname = 'XXXXXXXX' activate_SDSF_REXX_support: rc_isf = isfcalls("ON") select when rc_isf = 00 then call set_SDSF_special_variables when rc_isf = 01 then msg_isf = "Query failed, environment not added" when rc_isf = 02 then msg_isf = "Add failed" when rc_isf = 03 then msg_isf = "Delete failed" otherwise do msg_isf = "Unrecognized Return Code from isfCALLS(ON): "rc_isf end end if rc_isf <> 00 then do retcode = rc_isf * 10 signal finish end return set_SDSF_special_variables: isfprefix = parm_jobname isfowner = "*" isfcols = "JNAME TOKEN JOBID QUEUE ESYSID" command = "ST" call search_job return search_job: if debug > 0 then opts_sdsf = "(VERBOSE ALTERNATE DELAYED)" else opts_sdsf = "(ALTERNATE DELAYED)" TRACE 'E' call exec_sdsf "0 ISFEXEC ST" opts_sdsf do ij = 1 to JNAME.0 if JNAME.ij = parm_jobname then do if submit_time <> "" then do if later_time(parm_date,parm_time,DATER.ij,TIMER.ij) = 1 then job_found = "YES" end end if job_found = "YES" then do currtoken = TOKEN.ij job_found = "YES" leave ij end end end exec_sdsf: parse arg max_SDSF_rc exec_SDSF_command if symbol("ISFMSG") = "VAR" then drop isfmsg sdsf = "OK" address SDSF exec_SDSF_command "(VERBOSE ALTERNATE DELAYED)" if (max_SDSF_rc = "*") then return rc if (rc > max_SDSF_rc | rc < 0) then do sdsf = "KO" end return 0 |
Code: |
if debug > 0 then opts_sdsf = "(VERBOSE ALTERNATE DELAYED)" else opts_sdsf = "(ALTERNATE DELAYED)" |
Code: |
address SDSF exec_SDSF_command "(VERBOSE ALTERNATE DELAYED)" |
Code: |
address SDSF exec_SDSF_command |
chmscrbbr wrote: |
Thanks everyone, I apologize for my code but I have just sewed everything I saw on the manual, yeah Thanks Magesh_J, seems like I can invoke SDSF through JCL.. |
output generated using printer-friendly topic mod. All times are GMT - 5 Hours