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

SYMNAMES question


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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
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:
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 Developer


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

PostPosted: Thu Nov 04, 2010 1:43 am
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:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top