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
 

 

passing the output of the VER statement to a variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject:
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

Site Director


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

PostPosted: Fri Feb 27, 2009 9:36 pm    Post subject:
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

Senior Member


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

PostPosted: Sat Feb 28, 2009 10:11 am    Post subject: Reply to: passing the output of the VER statement to a varia
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm


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