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
 

 

Symbolic OverRide within a 'Include' CopyMember ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Sysaron

New User


Joined: 28 Sep 2005
Posts: 49
Location: USA

PostPosted: Thu Aug 27, 2015 10:51 pm    Post subject: Symbolic OverRide within a 'Include' CopyMember ?
Reply with quote

Good morning all,

Every year we need to change 80+ PROCs to include the current year in the mainframe DSN.
2013 = SYSIC.EXPL13.DATA
2014 = SYSIC.EXPL14.DATA
2015 = SYSIC.EXPL15.DATA
I want to create a PROC copy member that has a symbolic that will be moved to the DSN later in the PROC. The objective is to only chg this one PROC each year, and it will be copied into the 80+ PROCs.
They wont accept a GDG file. Thanks for your help.

Original:
//TCSPROC1 PROC YEAR=15
used for
SYSIC.EXPL&YEAR..DATA

New (doesn’t work):
//TCSPROC1 PROC
// INCLUDE MEMBER=TCSDATE

II YEAR=15
CAY6006S VERB 'YEAR=15' IS UNKNOWN


MEMBER TCSDATE contents are:
// YEAR=15
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Thu Aug 27, 2015 11:07 pm    Post subject: Reply to: Symbolic OverRide within a 'Include' CopyMember ?
Reply with quote

In your original, YEAR=15 is a symbol which gets passed to the PROC.

In your new example, your JCL-checker is telling you that YEAR=15 is not a VERB, by which I guess it means "is not JCL". Which it isn't. You need to find ways, which are valid JCL, to set a value to a symbol.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Aug 27, 2015 11:38 pm    Post subject:
Reply with quote

Look at SET in the JCL Reference manual.
Back to top
View user's profile Send private message
Sysaron

New User


Joined: 28 Sep 2005
Posts: 49
Location: USA

PostPosted: Fri Aug 28, 2015 2:27 am    Post subject:
Reply with quote

Can anyone think of a way to use the DFSORT DD CARD //SYMNAMES
as
CURYR2,S'&LYR2'
to accomplish what I am trying to do with an external DSN?
Back to top
View user's profile Send private message
Sysaron

New User


Joined: 28 Sep 2005
Posts: 49
Location: USA

PostPosted: Fri Aug 28, 2015 4:51 am    Post subject:
Reply with quote

IT WORKED - YAHOOOO!! We only have to Change one member for all the PROCS Every Year!

THANK YOU Robert Simple for pointing me to the "Set" Command

XXP9UP9999 PROC
XX INCLUDE MEMBER=TCUDDATE
XXSETYR SET YR=15
DSN=SYSIC.EXPL&YR..DATA,
IEFC653I SUBSTITUTION JCL - DSN=SYSIC.EXPL15.DATA,
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Fri Aug 28, 2015 8:47 am    Post subject:
Reply with quote

Good to hear you got it working -- even if you did get my name wrong!
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Sep 08, 2015 2:32 am    Post subject:
Reply with quote

Another approach is to use IDCAMS utility to define a NONVSAM ALIAS, so in the JCL you never have to change the dataset name, you just change the ALIAS to point to another underlying file each year. (Both file names must be in the same catalog)

e.g.
In your JCL you always specify the name as SYSIC.EXPL.DATA and it doesn't change, it is not even a physical dataset, just a pointer in the catalog to the real underlying physical dataset...

so for year 2013:
DEFINE ALIAS(NAME(SYSIC.EXPL.DATA) -
RELATE(SYSIC.EXPL13.DATA) )

year 2014..repoint the alias to the 2014 year dataset..
DEFINE ALIAS(NAME(SYSIC.EXPL.DATA) -
RELATE(SYSIC.EXPL14.DATA) )
Back to top
View user's profile Send private message
Willy Jensen

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Sat Sep 19, 2015 12:24 am    Post subject:
Reply with quote

if you are on z/OS 2.1 then you can use a system symbol and do away with that include.
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
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm


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