Current date as object description #2260
Replies: 1 comment 1 reply
-
@vaisoliviu There is no built-in variable containing the current date... 😞 ...but you can use SQL to change the text and SQL has the current date. 😃 Your command will depend on what type of source you're compiling from. Assuming your source is in a traditional source member, you could add this command to your compile action (as a command separated from the CRT... command by a newline - you can have more than one command in an action):
The same goes for other source member create-commands - and for streamfile sources, you use the variables available streamfile variables:
Or if you prefer, you can create new actions with these commands and run them independently from the compile action. EDIT: The |
Beta Was this translation helpful? Give feedback.
-
Hello,
I would like to add the current date as the object's description when compiling a program or file.
I was thinking about using an environment variable. Is it possible, and if yes, could u please help me with the variable definition?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions