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
 

 

SYMNAMES question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
clickit

New User


Joined: 08 Jul 2005
Posts: 3
Location: Hellas

PostPosted: Wed Aug 11, 2010 12:54 pm    Post subject: SYMNAMES question
Reply with quote

greetings to all,
I have this variable in a jcl
// SET FRMDT='01.01.2010'

why can't i have this
//STEP0300 EXEC PGM=SORT
//SYMNAMES DD *
FROMDATE,&FRMDT

here's the error i get
FROMDATE,&FRMDATE
$
ICE272A 0 SYMBOL, VALUE OR SYNTAX IS INVALID
ICE279A 0 ONE OR MORE ERRORS ENCOUNTERED DURING SYMNAMES PROCESSING
ICE751I 0 C5-K26318 E7-K24705
ICE052I 3 END OF DFSORT


is there any way to have this

p.s.
i did a search before, i found nothing
the reason i want to have this is that i have many references of FROMDATE variable in jcl
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 11, 2010 2:03 pm    Post subject:
Reply with quote

symbolic variables do not work in instream data.

next time search the jcl manual.
Back to top
View user's profile Send private message
clickit

New User


Joined: 08 Jul 2005
Posts: 3
Location: Hellas

PostPosted: Wed Aug 11, 2010 2:09 pm    Post subject:
Reply with quote

dbzTHEdinosauer wrote:
symbolic variables do not work in instream data.

next time search the jcl manual.


i know that this doesn't work
all i asked is for a workaround tip "is there any way to have this"
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 11, 2010 3:33 pm    Post subject:
Reply with quote

actually, the problem lies in the fact that you are not using a system symbol,
but instead a JCL symbol.

Note: JCL symbols and IPCS symbols are not system symbols and will not be recognized or replaced in a system symbol string

a post by SUPERK provides a workaround:
http://ibmmainframes.com/viewtopic.php?t=49243
also included are control-m card substitution.
Quote:

You need a program that can accept the variable FRMDT as a parameter, i.e.:

//STEPNAME EXEC PGM=PGMX,PARM='&FRMDT'
//OUT DD DSN=&&S1,DISP=(,PASS),...

and write that value as a DFSORT symbolic name, referenced in your SORT/ICETOOL step by the SYMNAMES DD statement. something like:

//SYMNAMES DD DSN=&&S1,DISP=(OLD,DELETE),...

where &&S1 contains something like this:

FRMDT,C'20100604'

Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu Nov 04, 2010 1:43 am    Post subject:
Reply with quote

With z/OS DFSORT V1R10 PTF UK90025 or z/OS DFSORT V1R12 PTF UK90026 (Oct,2010), you can now use SET and PROC symbols in DFSORT and ICETOOL control statements. For example:

Code:

...
// SET FRMDT='01.01.2010' 
//STEP0300 EXEC PGM=SORT, 
//  PARM='JP1"&FRMDT"'     
...


JP1,C'01.01.2010'

will be added to the Symbol table. JP1 can be used in DFSORT and ICETOOL control statements in the same way other Symbols for constants can be used.

For complete details on the new functions for DFSORT and DFSORT's ICETOOL available with the Oct, 2010 PTF, see:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000242
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts How to get previous month in SYMNAMES Suganya87 SYNCSORT 9 Fri Oct 28, 2016 1:37 pm
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts SQL Order By related question Joseph K Thomas DB2 8 Fri Mar 18, 2016 12:53 pm


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