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
 
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: 2083
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: 10308
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 Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm

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