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

how can the Symbolic parameter be expanded


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MohamedKhan

New User


Joined: 05 Apr 2007
Posts: 1
Location: India - Chennai

PostPosted: Fri Apr 27, 2007 9:51 am
Reply with quote

Hi All,

I have my JCL as below.

Code:

//*
//DBNAME SET DBNAME='SR00001D'
//*
//SQLBATCH EXEC PGM=IKJEFT01
//SYSOUT    DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
  DSN SYSTEM(DSN)
    RUN PROGRAM(DSNTEP2) LIBRARY ('SYS3.RUNLIB.LOAD')
  END
/*
//SYSIN DD *
      SELECT * FROM
         SYSIBM.SYSDATABASE
         WHERE
           NAME=&DBNAME
/*


I want to know how can the Symbolic parameter be expanded (Like DBNAME replaced by SR00001D) in the above JCL.

As of now when i run this JCL the Name is being taken as DBNAME, but i want it to be SR00001D (as set in SET parameter).

Thanks
Mohamed Sikander
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Apr 27, 2007 12:02 pm
Reply with quote

You can't do that using pure JCL. Use some utilities (like SORT) or programming language (like COBOL, REXX etc.).

O.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top