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

How to find the Current Version of the Natural Module?


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nemaji

New User


Joined: 29 May 2007
Posts: 22
Location: Pune

PostPosted: Wed Jul 22, 2009 5:57 pm
Reply with quote

How can we find out the current version of the Natural Module we are using. Is there any statement or system variable in Natural which can give this information.

There is an Way to see the Version, that, when we list all the modules. It gives you that for all the modules present in that Library with their version in the Version column. Apart from this, please suggest some other way to find it.

Thanks in Advance.

Gourav Nema
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Sun Jul 26, 2009 10:19 pm
Reply with quote

Hi Nemaji,

I really do not understand to which version you are referring to. If you are talking about the Code version (created, then modified and moved to production, then modified and moved to production..so on), then that must be maintained in a version control tool like Endevor for Natural.

The version you see when you list the modules is the version in which that module was Cataloged/Stowed. Some times you will see the version shown with list command is an older version then the version you are currently working in. And this is Natural version.

Also you can use L DIR <module name> to see the complete information for a specific module.


Thanks,
Back to top
View user's profile Send private message
nemaji

New User


Joined: 29 May 2007
Posts: 22
Location: Pune

PostPosted: Mon Jul 27, 2009 4:03 pm
Reply with quote

Hi monasu1998,

Thanks for your reply on this query.

Actually my query was, if we are writing an Natural code, and in that if we would like to know the version of that Natural, then, is there any System Variable or any Statement within Natural for this purpose.

I mean, within any Natural module can we code an Statement which will tell its version (In the region where we are going to stow that).

Thanks in Advance.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jul 28, 2009 11:55 am
Reply with quote

First, the command LIST DIR while in editor - will give you the current version (with some other info).

If you want to get the version programmatically, you can use user exit USR0330 or USR2018. The variables NATVER & NATSMN contain the version.

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Jul 28, 2009 10:14 pm
Reply with quote

Hi ofer71,

Can you please explain in brief on how to use these USER EXITs?

Thanks,
A.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jul 28, 2009 10:49 pm
Reply with quote

No, I can not explain, because the exact invocation instructions are written at the start of each user exit, in addition to the accompsnied TEXT module and in addition to the fine manuals.

User exit invocation is version-, TP Monitor- and site-dependent.

O.
Back to top
View user's profile Send private message
nemaji

New User


Joined: 29 May 2007
Posts: 22
Location: Pune

PostPosted: Wed Jul 29, 2009 4:33 pm
Reply with quote

Thanks a lot monasu1998 and ofer71...

Your answers helped me in finding the solution i required...:-)
Back to top
View user's profile Send private message
Ralph Zbrog

New User


Joined: 21 Nov 2009
Posts: 58
Location: California

PostPosted: Thu Dec 10, 2009 3:59 pm
Reply with quote

There is no need to invoke a user exit. Simply look at the value of System Variable *NATVERS.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Dec 10, 2009 6:41 pm
Reply with quote

From the fine manual:
Quote:
*NATVERS - This system variable is not available on mainframe computers.


O.
Back to top
View user's profile Send private message
Ralph Zbrog

New User


Joined: 21 Nov 2009
Posts: 58
Location: California

PostPosted: Thu Dec 10, 2009 8:43 pm
Reply with quote

It's in the Natural 4.2.6 manual: documentation.softwareag.com/natural/nat426mf/vari/natenv.htm#NATVERS

I thought it's been there since the 4.2 release, perhaps 4.1.
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top