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
 

 

Using SETVAR in OPC Tivoli Workload Scheduler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Using SETVAR in OPC Tivoli Workload Scheduler
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: 2429
Location: Netherlands, Amstelveen

PostPosted: Sat Feb 02, 2013 11:04 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts Daily report to be extracted from CA ... polymathtarun DFSORT/ICETOOL 5 Mon Jul 11, 2016 4:33 pm
No new posts Syntax for running batch history repo... polymathtarun CA Products 1 Tue Jun 21, 2016 1:51 pm
No new posts ESP Scheduler -Endpoint URL changes shanmugaraj Rathinam CA Products 2 Fri Apr 22, 2016 10:42 am
No new posts To read from Zeke scheduler p.anbuselvan CLIST & REXX 5 Thu Mar 31, 2016 1:13 am


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