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

How to add date as Low level qualifier to a dataset name?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tamilarasi Manoharan

New User


Joined: 11 Jun 2009
Posts: 1
Location: Chennai

PostPosted: Fri Jun 12, 2009 9:40 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Jun 12, 2009 10:36 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 12, 2009 11:37 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jun 12, 2009 11:37 am
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top