we are evaluating NaturalONE at the moment and really like the new readable data area format. However, as we cannot convince all our developers to switch to NaturalONE (yet), we need to find a way to make Natural Studio and NaturalONE work together on the same code base. We would like to use the new data area format in SVN and need to find a way to convert data areas that are modified with Natural Studio into the new format before committing to SVN, so that deployment can happen via Ant scripts from NaturalONE, that need the new format. NaturalONE does this conversion automatically when it imports sources from the server into the local working copy, but Natural Studio simply saves the old format.
Long story short: Is it possible to convert the “old” internal data area format to the “new” one with a command line tool, e.g. ftouch?
what I need is a tool that creates the exact same format that NaturalONE uses. NaturalONE converts the data areas into the format that is used in DEFINE DATA, e.g.
01 P-PARAM (A8)
I need to be able to create this format from a script, so that I can run it after copying sources via Natural Studio. Both platforms have to use the same format in SVN. Otherwise any automatic deployment is impossible.
Well, I don’t know what platform you are using. If your Sources and GPs are stored on the file system you can use the logic of the perl-script I posted above…
Since I don’t have NaturalOne you have to try out if it uses the same logic as the script.
I tried URS4201N and it seems promising. However, I just found out that Natural Studio has an option that turns on the conversion of the Data Areas when transfering the sources to SVN. Although that does not solve my problem directly I think I can work something out
I am confused a bit. Why wouldn’t the developer tools (Natural Studio and Natural ONE) work the same way? Don’t they both access the same source (e.g., mainframe Natural) through the Natural Development Server (NDV)? I am just trying to understand why the need to pass source data for programming objects outside the architecture.
what I tried to do was to get the sources on the server directly under version control. We run Natural on Linux and the FUSER folder is a directory on the file system, which could be connected to SVN directly. If that was possible, there would be no need for developers to “copy” sources into their working copy on their client. However, Natural saves data areas in FUSER in the internal format, but I wanted the “DEFINE DATA” format in SVN, so that if we decided to switch to NaturalONE later, we could use SVN without the need to change the sources.
But I do not think that versioning the FUSER directly is worth the effort of scripting the transformation. I think I will stick with local working copies on the developers’ clients and use Natural Studio’s “Local Versioning” plugin.