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
 

 

Dynamic naming of variables in PLI

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
nidhi.palsule

New User


Joined: 17 Feb 2009
Posts: 9
Location: Pune

PostPosted: Wed Jun 29, 2011 2:27 pm    Post subject: Dynamic naming of variables in PLI
Reply with quote

Hi,

I have a requirement to dynamically declare and use variables-names in PLI program. These variable names and copybook names will be stored in a DB2 table from where my program will read them and then further use them.

Is this possible in PLI to include copybooks dynamically and also declare and use dynamic variables? If so please let me know how.

Thanks,
Nidhi.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Wed Jun 29, 2011 2:58 pm    Post subject:
Reply with quote

Please go find out what "compile" means and how it applies to PL/1. Then tell us how you expect the program, while it is running, to recompile itself.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Jun 29, 2011 3:05 pm    Post subject: Reply to: Dynamic naming of variables in PLI
Reply with quote

for an approach to a nameless ( no need for variable names ) programming approach see
dsntep2 and dsntep4 examples in DSNxxx.SDSNSAMP

just curious.... who set the requirement?
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Mon Jul 04, 2011 1:22 am    Post subject: Re: Reply to: Dynamic naming of variables in PLI
Reply with quote

enrico-sorichetti wrote:
just curious.... who set the requirement?

Who other than the PHB...
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm


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