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

passing the output of the VER statement to a variable


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vivbalboa

New User


Joined: 27 Feb 2009
Posts: 2
Location: Bangalore

PostPosted: Fri Feb 27, 2009 11:30 am
Reply with quote

Hi,
i am using the ver staement in aa pnel to check the valid values.
VER(&REG,NB,INCLUDE,ALPHAB).
using this, i get a meesage on the RHS on the top of the panel.But i want to pass it to a message variable which i have declare.Can anybody help me out on this?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Feb 27, 2009 9:36 pm
Reply with quote

Hello and welcome to the forum,

Quote:
Can anybody help me out on this?
Possibly, when your request is better understood.

Please post a bit more of the code, an example of what is happening (do not post screenshots - use copy/paste and the "Code" tag), and what you want to happen instead.

You probably do not need to post whole screens, but just the part that shows your requirement.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Sat Feb 28, 2009 10:11 am
Reply with quote

I think you want the VER to be used in conjunction with an IF statement.
Code:

IF (VER(&REG,NB,INCLUDE,ALPHAB))
    &MSGID = 'MSG001'
ELSE
    &MSGID = 'MSG002'
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
Search our Forums:

Back to Top