saif3r
26th September 2012, 11:23
I'm new one here, so Hello Everybody :)
I got one question regarding output file in BaaN V.
Is it possible to use current date in output file name similar to ${LOGNAME}?
Thanks.
bdittmar
26th September 2012, 14:20
I'm new one here, so Hello Everybody :)
I got one question regarding output file in BaaN V.
Is it possible to use current date in output file name similar to ${LOGNAME}?
Thanks.
Hello,
based in the date type you use (UTC or DATE) you have to build a variable like :
For UTC :
before.program:
m_trdt = utc.num()
utc.to.date(m_trdt, form.yrno, m_monat, m_tag, m_std, m_min, m_sek)
form.datei = bse.dir$() & TRANSFERPFAD & TRANSFERDATEI
& edit$(form.yrno, "9999")
& edit$(m_monat, "99") & edit$(m_tag, "99") & "-"
& edit$(m_std, "99") & edit$(m_min, "99") & edit$(m_sek, "99")
& EXTENSION1
..........................................
The above shown code creates a filename like :
dhsta060_20120921-220002.txt
Regards
saif3r
26th September 2012, 14:38
Thank you bdittmar,
but I'm an user, not admin, so I'm unable to define new variables. It is in my understanding that ${LOGNAME} is defined in the same way u did about DATE?
Regards.
bdittmar
26th September 2012, 15:21
Thank you bdittmar,
but I'm an user, not admin, so I'm unable to define new variables. It is in my understanding that ${LOGNAME} is defined in the same way u did about DATE?
Regards.
Hello,
Predefined Variables from LN DEV-Guide :
string date$(6) R Current system date (DDMMYY).
string logname$(16) R Current login name.
but
how and where do you built your filename now (Not in sessionscript ?) ?
Regards
saif3r
27th September 2012, 12:01
I build my filename simply in output field in one of the session. But ye, i will set up a shell script session in job i need file from.
Thanks, take care.