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: 19243
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: 2624
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 All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts variable in library name within a PROC. JCL & VSAM 11
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Passing containers on START command CICS 4
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
Search our Forums:


Back to Top