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

declaring variable in clist instead of declaring in ISPF pa


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
svrekha

New User


Joined: 08 Mar 2007
Posts: 6
Location: coimbatore

PostPosted: Tue Nov 25, 2008 8:09 am
Reply with quote

Hi all ,
Can anyone help me on this :

i have declared a variable in the ISPF panel with the below picture clause
VER (&rollno,PICT,NNNNNNNNN)
VER (&class,PICT,NNNN)
VER (&mark,PICT,NNN)

as per my requirement i need to declare this in the clist
please let me know how to declare there variables in the clist , can i use the pic 9(9)...
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Nov 25, 2008 9:25 am
Reply with quote

You do not declare variables in CLIST, just go ahead and use them

But you should write programs in REXX instead of clist.
Back to top
View user's profile Send private message
svrekha

New User


Joined: 08 Mar 2007
Posts: 6
Location: coimbatore

PostPosted: Tue Nov 25, 2008 9:38 am
Reply with quote

hi,,

as per req, and to satify some scenrios , i need to declare these variables in clist,, please let me know the syntax
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Tue Nov 25, 2008 9:49 am
Reply with quote

You have scenarios where you need to declare variables in a language that does not have variable declarations? Pls reread Pedro's post and look at the CLIST and ISPF manuals.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 25, 2008 12:33 pm
Reply with quote

Which part of Pedro's reply was unclear to you ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 25, 2008 1:51 pm
Reply with quote

Quote:
... as per req,...


the stupid requirement cannot be satisfied FULL STOP
in CLIST and REXX scripts variables are not defined anywhere,
the variables are automatically defined the first time they appear on the left side of an assignment
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Variable Output file name DFSORT/ICETOOL 8
Search our Forums:

Back to Top