View previous topic :: View next topic
|
Author |
Message |
Tamilarasi Manoharan
New User
Joined: 11 Jun 2009 Posts: 1 Location: Chennai
|
|
|
|
Hi,
How to add current date as the Low level qualifier to a dataset name?
eg. "a.b.c.dt090611"
I used OPC option, as
//*%OPC SCAN
//*%OPC SETFORM OCDATE=(YYMMDD)
//*%OPC SETVAR TDAT2=(OCDATE-1CD)
and the dataset name as below
DSN=EORGA.AXXXX.DBA.CREDITS.DT&TDAT2,
But it shows an error as below.
STMT NO. MESSAGE
12 IEFC627I INCORRECT USE OF AMPERSAND IN THE DSN FIELD
Need help please!!!!
Regards,
Tamil. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Sorry, I do not know OPC so this advice might not apply.
I think the ampersands can only be used within a proc. You need to define the proc and then pass in the date as a parameter. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I think, from my distant memories of OPC, that maybe a different substitution symbol is used to substitute OPC variables.
Have a chat with your scheduling team and see if they know. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
If OPC is not the only option then there are plenty of working examples in this Forum for a similar request. Please seach the Forum. |
|
Back to top |
|
|
|