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
 

 

declaring variable in clist instead of declaring in ISPF pa

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: declaring variable in clist instead of declaring in ISPF pa
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

Senior Member


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

PostPosted: Tue Nov 25, 2008 9:25 am    Post subject: Reply to: declaring variable in clist instead of declaring
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    Post subject: Reply to: declaring variable in clist instead of declaring
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: 401
Location: Mumbai

PostPosted: Tue Nov 25, 2008 9:49 am    Post subject: Reply to: declaring variable in clist instead of declaring
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 25, 2008 12:33 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Nov 25, 2008 1:51 pm    Post subject: Reply to: declaring variable in clist instead of declaring
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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