Rocket U2 | UniVerse & UniData

 View Only

 Assigning value in paragraphs

Jeff Teter's profile image
Jeff Teter posted 01-22-2021 11:16
I am writing a paragraph to script compiling programs and am creating a log record using the DIVERT.OUT capability. So, the DIVERT.OUT command is set up to be:
DIVERT.OUT ON log_file THIS.PARA APPEND

I want to add the date to the name 'THIS.PARA' so that the command would be:
DIVERT.OUT ON log.file THIS.PARA.<<P,THIS.DATE>> APPEND

So, I am trying to set 'THIS.DATE' to a date in the form of 'yymdd'.

i have a program that will set paragraph variables but at this point, that program is not yet compiled and available. Suggestions for a simple way to do this just in the paragraph?

Thanks!
Stuart Boydell's profile image
Stuart Boydell
Hi Jeff,
At the risk of sparking a minor controversy, I'd suggest the use-case for doing something "just in a paragraph" is fairly slim - it's pure legacy. Many other tools exist that give you a much more flexible and colourful palette for running, logging and controlling jobs, why not use a Basic program at least?
However, you could get what you want by using <<F...>> to retrieve the value from a previously updated control file.
Regards,
Stuart