I’m from the client-server world, so please excuse my lack of knowledge.
Is it possible to export the value of a Natural variable to a JCL variable after a Natural program has finished running in batch mode (on VSE in our case)?
We have batch programs that create extract files that the JCL then pushes down to the C-S world via FTP. But the file names are limited in size (8 bytes).
I’d like the file names to be something along the lines of: tkdata-yyyymmdd-hhmmss.txt, which I know can be created in Natural.
If that value could be exported to a JCL variable, then theoretically, within a JCL script one could do:
put vse.file.name &varname
and the value in &varname would be the name of the file when it arrives on my end.
Is this possible? If so, how?