this is the code
this was written by Avi HECHT
and i got it from here :
AddEnvVar EnvVar(TM) Value(&RECORD) Replace(*YES)
ChgVar Var(&DATA) Value('ECHO $TM >>' *BCAT +
'/QSYS.LIB/' *TCAT &LIB *TCAT '.LIB/' +
*TCAT &FILE *TCAT '.FILE/' *TCAT &MEMBER +
the problems are these:
first you need to create a file if it doesn't exist.
solved through :
ChkObj Obj(&LIB/&FILE) ObjType(*FILE)
Monmsg MSGID(CPF9801) Exec(DO)
CrtPf File(&LIB/&FILE) RcdLen(512)
MonMsg MsgId(CPF0000) Exec(Goto ERROR_)
second, it will only write the first line ( the one that created the .MBR )
after that it doesn't add anything. i'm talking about batch.
when in interactive it works charms.
can anyone tell me why o0o why won't it work in batch , cuz it says it does!
is there a way to fix it ?