Set var vLFNFileDT1 text = '8/17/2009 4:23 AM'

 

Now that we get this var from a RBL so no changing it!  But I would like var
v_something Text = '20090817'  Lead year for file use, zero filed months and
days etc..  Time could be nice also but not required in this case.

 

 

So I would assume Set Var v2 date = (ssub(.vLFNFileDT1,-1))   fails!   

But:        Set Var v3 = (ssub(.vLFNFileDT1,-1))   

                Set Var v4 date = .v3 provides the date value  As expected.

 

That way you could set Date = 'YYYYMMDD' and add that part in the string and
put it together in front of a file name.

 

Seems simple, but I am missing the first step that fails. I could include
this long declare var this/that (v1,v2,v3,.) but it would be nice in 1-2 var

 

 

 

Set Date YYYYMMDD

Set var V2 text = ((ssub(.v1,-1))  & .vLFNFileNameS1)  

Set Date MM/DD/YYYY

 

However I know that is impossible.  Thought about using #NOW and loading
that into a var?  Not possible from what I can see. Example:

Set var v1 #NOW = . vLFNFileDT1 and then switch it to a text var with
YYYYMMDD HHMM.  Also again adding steps.

 

 

Any ideas why "Set Var v2 date = (ssub(.vLFNFileDT1,-1))"   fails?    Am I
missing something in quotes or ?  Not possible and just take the addn'l
steps?

 

 

 

 

 

Sincerely,

Paul Dewey 

Reply via email to