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

Using SETVAR in OPC Tivoli Workload Scheduler


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
atr0037

New User


Joined: 27 Jan 2013
Posts: 1
Location: Portugal

PostPosted: Fri Feb 01, 2013 7:03 pm
Reply with quote

Hi, due a metter of time zones, I'm trying to use the following formula in OPC, but I'ts giving me error. What I want to acheive is to get the previous day before the next working day.
I'm trying to do the followig:
Code:

/LUSER01A JOB (885002,NOBO),SAMPLE,NOTIFY=XSTEVEN,MSGCLASS=Q,
// CLASS=B,MSGLEVEL=(1,1),PRTY=1
//*
//*%OPC SCAN
//*%OPC SETFORM OCDATE=(CCYYMMDD)
//*%OPC SETVAR TEST=(OCDATE + 1WD - 1CD)


The last instruction is giving error.
Does anyone have an ideia how to do this ?

Thank you in advance!
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Sat Feb 02, 2013 11:04 am
Reply with quote

It would have been nice if you had mentioned the error, that makes resolving the problem a bit easier.

My guess is that you can only use 1 arithmetic operation in a SETVAR, so
maybe the following will work :

Code:

//*%OPC SETVAR TEST=(OCDATE + 1WD)
//*%OPC SETVAR TEST=(TEST - 1CD)
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How can I select certain file dependi... JCL & VSAM 12
This topic is locked: you cannot edit posts or make replies. How can I select certain file dependi... Compuware & Other Tools 1
No new posts Extract all the TWS scheduler informa... IBM Tools 1
No new posts Tivoli INFO/MANAGEMENT IBM Tools 1
No new posts Report generation from Zeke scheduler Compuware & Other Tools 2
Search our Forums:

Back to Top