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
 
Paasing symbolic parameter to instream data in jcl

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

New User


Joined: 13 Jan 2015
Posts: 1
Location: India

PostPosted: Thu Jul 27, 2017 1:22 pm    Post subject: Paasing symbolic parameter to instream data in jcl
Reply with quote

Hi,

My requirement is to create a KSDS file and the first qualifier in the file name should be substituted with system user id(Sysuid).

The below code substitues symbolic parameter inside sysin dd * :

Code:
//E1  EXPORT SYMLIST=(DSNAME)                   
//S1  SET    DSNAME=ABC                     
//STEP002  EXEC PGM=IDCAMS                     
//SYSPRINT DD SYSOUT=*                         
//SYSOUT   DD SYSOUT=*                         
//SYSIN    DD *,SYMBOLS=JCLONLY                 
   DEFINE CLUSTER                               
           (NAME(&DSNAME..DUMMY.TEST1)     -   
                 DATACLAS(EXTADR)               
                 KEYS(39 0)                     
                 RECORDSIZE(347 347)           
                 FREESPACE(19 11)               
                 SHAREOPTIONS(2 3)             
                 SPEED                         
                 VOLUMES(* *))                 
       DATA(NAME(&DSNAME..DUMMY.TEST1.DATA) 
                 CONTROLINTERVALSIZE(8192)         
                 CYLINDERS(50 50))                 
      INDEX(NAME(&DSNAME..DUMMY.TEST1.INDEX)       
                 CONTROLINTERVALSIZE(2048)         
                 CYLINDERS(10  5))                 
/*       


Now, how to code the same without using set statement ?
Also ABC needs to be replaced with SYSUID. I tried with &SYSUID which is not working.

Thank you in advance.

Please give me some hint so that i can proceed further.. I read manual and searched in google but could not find anything useful.
Back to top
View user's profile Send private message

sergeyken

Active User


Joined: 29 Apr 2008
Posts: 388
Location: Maryland

PostPosted: Thu Jul 27, 2017 11:28 pm    Post subject:
Reply with quote

1.
Code:
// SET DSNAME=&SYSUID

2.
Code:
//SYSIN DD *,SYMBOLS=SYSEXEC
     . . . . .
              (NAME(&SYSUID..DUMMY.TEST1)     -   
     . . . . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8410
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 28, 2017 6:13 pm    Post subject:
Reply with quote

Talk to your site support group. Use of symbolic parameters in instream data is NOT automatic -- for JES2, a specific parameter has to be set in the initialization of JES2, and this parameter is by job class (not global) so you could be having a problem because you're running in the wrong job class, or because your site support group has not set up the parameter in JES, and only your site support group can tell you for sure which job class(es) are set up for instream symbolic parameters.
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
No new posts To get the count of PDS data sets whi... Vignesh Sid JCL & VSAM 4 Fri Nov 30, 2018 8:38 pm
No new posts DB2 - loading data Joshua1066 DB2 5 Sun Nov 18, 2018 4:58 am
This topic is locked: you cannot edit posts or make replies. DFSORT output in CSV for data spans i... hiravibk DFSORT/ICETOOL 3 Tue Nov 13, 2018 7:55 pm
No new posts REFORMATTING WITH JFY CLOBBERING OUTP... speermb DFSORT/ICETOOL 12 Thu Nov 08, 2018 7:20 pm
No new posts Migrating AS400 to HIVE; Data type ma... sindhu.jose All Other Mainframe Topics 1 Tue Nov 06, 2018 1:06 pm

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