Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how can the Symbolic parameter be expanded

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: how can the Symbolic parameter be expanded
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: 2360
Location: Israel

PostPosted: Fri Apr 27, 2007 12:02 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 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. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
This topic is locked: you cannot edit posts or make replies. How to save expanded jcl's into one l... enrico-sorichetti CLIST & REXX 13 Thu Jul 27, 2017 2:45 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us