It might help if you told us
why you don't / won't / can't use a shell-based solution.
An alternative is to construct a DSBasic routine:
- Use the system date to construct a filename mask (E.g. MyFile_
DD_MM_YYYY_*)
- Take a look at the relevant directory to see if any of today's files exist yet (sort the output)
- Get the highest sequence number from today's files (if any)
- Generate the appropriate filename as your routine's return value (using highest sequence number + 1)
- Call this routine from a job sequence using a User Variables activity
- Reference the routine's variable as an input parameter to the job creating the file.
Actually you could get the latest of today's files with a combination of
ls -1,
sort, and
head commands.
Hope your reason for avoiding the shell solution is good enough to justify all the extra effort!
John.