View previous topic :: View next topic
|
Author |
Message |
nemaji
New User
Joined: 29 May 2007 Posts: 22 Location: Pune
|
|
|
|
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 |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
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 |
|
|
nemaji
New User
Joined: 29 May 2007 Posts: 22 Location: Pune
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi ofer71,
Can you please explain in brief on how to use these USER EXITs?
Thanks,
A. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
nemaji
New User
Joined: 29 May 2007 Posts: 22 Location: Pune
|
|
|
|
Thanks a lot monasu1998 and ofer71...
Your answers helped me in finding the solution i required...:-) |
|
Back to top |
|
|
Ralph Zbrog
New User
Joined: 21 Nov 2009 Posts: 58 Location: California
|
|
|
|
There is no need to invoke a user exit. Simply look at the value of System Variable *NATVERS. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
From the fine manual:
Quote: |
*NATVERS - This system variable is not available on mainframe computers. |
O. |
|
Back to top |
|
|
Ralph Zbrog
New User
Joined: 21 Nov 2009 Posts: 58 Location: California
|
|
Back to top |
|
|
|