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
 

 

How to find the Current Version of the Natural Module?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: How to find the Current Version of the Natural Module?
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    Post subject: Re: How to find the Current Version of the Natural Module?
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    Post subject: Reply to: How to find the Current Version of the Natural Mod
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: 2360
Location: Israel

PostPosted: Tue Jul 28, 2009 11:55 am    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jul 28, 2009 10:49 pm    Post subject:
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    Post subject: Reply to: How to find the Current Version of the Natural Mod
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    Post subject: Reply to: How to find the Current Version of the Natural Mod
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: 2360
Location: Israel

PostPosted: Thu Dec 10, 2009 6:41 pm    Post subject:
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    Post subject: Reply to: How to find the Current Version of the Natural Mod
Reply with quote

It's in the Natural 4.2.6 manual: http://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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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