I am trying to develop a routine to get the last day of the month in the format yymmdd. For this I'm using the built-in transform "MONTH.LAST". The main prupose is to provide the output of the routine as a job parameter in a sequencer job. The code for the routine is as follows:
Code: Select all
DEFFUN MONTH.LAST(Arg1) Calling "DSU.MONTH.LAST"
NewDate = Oconv(MONTH.LAST(Arg1),"D2-")
Ans = Substrings(NewDate,7,2):Substrings(NewDate,1,2):Substrings(NewDate,4,2)
I have successfully tried using the same statement from a transformer stage. Can someone help me with this problem?
Thank you in advance,
Gregg