IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

tws opc 5.4 how to change operator text from jcl batch


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
italo_pm

New User


Joined: 26 Mar 2015
Posts: 37
Location: Italy

PostPosted: Wed Apr 29, 2015 11:22 am
Reply with quote

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"

it's possible??

thanks ..
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Wed Apr 29, 2015 2:19 pm
Reply with quote

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.
Back to top
View user's profile Send private message
italo_pm

New User


Joined: 26 Mar 2015
Posts: 37
Location: Italy

PostPosted: Wed Apr 29, 2015 5:18 pm
Reply with quote

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...

thanks again.

Italo.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Wed Apr 29, 2015 8:11 pm
Reply with quote

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.
Back to top
View user's profile Send private message
italo_pm

New User


Joined: 26 Mar 2015
Posts: 37
Location: Italy

PostPosted: Thu Apr 30, 2015 8:49 am
Reply with quote

thanks for answer, I'll try to be more clear,

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....

thanks again
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Apr 30, 2015 10:41 am
Reply with quote

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.

See : SC32-1263-00 Managing the Workload
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
Search our Forums:

Back to Top