hi , i want think, is possible in opc 5.4 (error list) execute with a command option (new cmd) to execute a jcl or rexx panel to pass parm to jcl jobname and application name from 5.4 ?? after change or replace operation text with a new text..??
in 5.4 my job in abend...
Code:
jobname appname text operarion
test001 app001 start script
when write command "REM" execute jcl or rexx send parm jobname and appname to jcl or rexx and then replace or change text operation with a new texte "email abend ok"
Your requirement isn't entirely clear, but going on the topic title - yes, you can change the job description from a batch job. Have a look at the Program Interface (PIF) manual.
thanks for answer... scuse me for my confused required...
my requirement is ... in 5.4 i can modify "text operator" from a jcl batch??... ho to create a new command (like sjr,cmp,j) and pass jobname and app name to jcl or rexx panel.. and when i execute this command exec or sub my rexx or job with this parm (name job and app name) and then change if all ok change "text operator" job in 5.4...
I'm still not entirely clear what you're trying to achieve, but as I said, the PIF can be used to modify the job description field, I assume this is what you mean by text operator? The PIF can also be used to rerun a job or mark it as complete, although I'm not sure what the benefit of viewing the job's JCL in a batch job would be.
As for getting the job and application names to pass to your utility, I can only suggest you look at the ISPF variable ZSCREENI.
how to create a new cmd (command like SJR,C,J,I,CMP,MOD,etc,etc) for execute rexx or jcl....
I would send a email for each one job in abend, I made a rexx doing that thing in a ispf panel, i pass as parm jobname and application name to find owner application.. rexx works... (but only from ispf panel)
now i'd like to know how to pass jobname and application name to my rexx, certainly with a new cmd command I can pass these ones parms...
for sample:
figure 1
Code:
--------------- HANDLING OPERATIONS ENDED IN ERROR (left par Row 1 to 16 of 19
Command ===> Scroll ===> CSR
Scroll right, enter the EXTEND command to get extended row command
information, enter the HIST command to select operation history list or
enter any of the row commands below:
I,O,J,L,RC,FSR,FJR,FSC,RI,C,MH,MR,SJR or RER,ARC,WOC,CMP,MOD,DEL,RG,DG or CG
LAYOUT ID ===> OPCCRO__ Change to switch layout id
Cmd End time Jobname ws Operation text Application Errc Oi
REM 30 03.14 A0100P01 MVS1 DB SCRIPT 1 A0100 UFA1 N
''' 30 01.40 A01AAP01 MSAS DB SCRIPT 2 A01AA S722 N
''' 30 01.35 B01BBP01 MVS1 DB SCRIPT 3 B01BB UFA1 N
I would write "REM" or another in cmd option from job A0100P01 in abend and then execute in automatic my rexx with jobname and application name as parm and alter in automatic the Operation text of that job with "EMAIL SENT"...
then
figure 2
Code:
--------------- HANDLING OPERATIONS ENDED IN ERROR (left par Row 1 to 16 of 19
Command ===> Scroll ===> CSR
Scroll right, enter the EXTEND command to get extended row command
information, enter the HIST command to select operation history list or
enter any of the row commands below:
I,O,J,L,RC,FSR,FJR,FSC,RI,C,MH,MR,SJR or RER,ARC,WOC,CMP,MOD,DEL,RG,DG or CG
LAYOUT ID ===> OPCCRO__ Change to switch layout id
Cmd End time Jobname ws Operation text Application Errc Oi
''' 30 03.14 A0100P01 MVS1 EMAIL SENT A0100 UFA1 N
''' 30 01.40 A01AAP01 MSAS DB SCRIPT 2 A01AA S722 N
''' 30 01.35 B01BBP01 MVS1 DB SCRIPT 3 B01BB UFA1 N
when the rexx is finish, alter in automatic the Operation text of that job with "EMAIL SENT".
it's possible this??
if not possible, how can pass jobname and application name as parm from 5.4 to my rexx....
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
TWS gives you the possibility to create your own "ended in error" panels.
However it will you supply with all the fields processed by TWS. So as far as i can see there is no possibilty to do your own processing.