Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

tws opc 5.4 how to change operator text from jcl batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: tws opc 5.4 how to change operator text from jcl batch
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: 175
Location: UK

PostPosted: Wed Apr 29, 2015 2:19 pm    Post subject: Reply to: tws opc 5.4 how to change operator text from jcl batch
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    Post subject: Reply to: tws opc 5.4 how to change operator text from jcl batch
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: 175
Location: UK

PostPosted: Wed Apr 29, 2015 8:11 pm    Post subject:
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    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Apr 30, 2015 10:41 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us