AnsweredAssumed Answered

Run time Error on WRITE_PROCESS : Cannot Interpret Text

Question asked by Satyaki_Chowdhury_10435 on Feb 21, 2018
Latest reply on Feb 22, 2018 by Wolfgang_Brueckler_1288
Hi,

I have a UC4 Script where i am creating a Data Sequence using PUT_PROCESS_LINE and my aim is to Write the Sequence to a file. I thought of using WRITE_PROCESS, but it seems that UC4 is not able to identify the function. Below is the Code Snippet - 

!Create Data Sequence for the File to be written

:SET &HND# = CREATE_PROCESS(NEW)
:SET &RET# = PUT_PROCESS_LINE(&HND#, '1 &starttime_s# &endtime_s#', ",")
:SET &RET# = PUT_PROCESS_LINE(&HND#, '2 &starttime_b# &endtime_b#', ",")
:SET &RET# = PUT_PROCESS_LINE(&HND#, '3 &starttime_l# &endtime_l#', ",")

:PROCESS &HND#
:   SET &LINE#=GET_PROCESS_LINE(&HND#)
:   PRINT &LINE#
:ENDPROCESS

:SET &RET# = WRITE_PROCESS(&HND#,"C:\temp\export.txt",WIN01,LOGIN.SERVERS,OVERWRITE)

:CLOSE_PROCESS &HND# 

Error that i am getting - Cannot interpret text : 'WRITE_PROCESS'. Check syntax.

AE - One Automation 2013 (Dialog Version - 9.00A Build 514-8C1)

If WRITE_PROCESS is not supported, is there any other way to write a Data Sequence to a Remote file ? The Data Sequence is created in the process of a CALL (MAIL) Job.

Thanks in Advance

Outcomes