Automic Continuous Delivery Automation

 PREP_PROCESS_REPORT issue

Aj Revelino's profile image
Aj Revelino posted 09-20-2021 04:15 AM
Hi All,

I'm testing a task that executes windows powershell commands in a target server. I would like to process the console output of the powershell commands in the post process section of the task in CDA. I created a windows job that executes the powershell commands but I don't see any output when I tried the PREP_PROCESS_FUNCTION.  Any directions on what I'm missing will be really helpful. Thanks!
Example code that I used from https://docs.automic.com/documentation/webhelp/english/AWA/12.1/DOCU/12.1/AWA%20Guides/help.htm#AE_AWA_Source/Script/ucaavf.htm?Highlight=PREP_PROCESS_REPORT

:SET &HND# = PREP_PROCESS_REPORT("JOBS",, "REP", "*C:\*")
:
PROCESS &HND#
:   
SET &RET# = GET_PROCESS_LINE(&HND#)
:   
PRINT &RET#
:
ENDPROCESS