Hello everyone!
Customer requires to send a list of files in particular directory through email. If I am retrieving folder content using GET_PROCESS_LINE and save to variable, I am able to see FIRST LINE of that list only in the output email.
Example:
!create a list of /adc
:SET &HND# = PREP_PROCESS("&ADC_HOST#","UNIXCMD",,"CMD=ls /adc","UC_LOGIN=&ADC_LOGIN#")
:PROCESS &HND#
: SET &OUTPUT# = GET_PROCESS_LINE(&HND#)
: P &OUTPUT#
:ENDPROCESS
!send email with above lists
:SET &FINAL_MAIL# = SEND_MAIL(&MAIL_ADDRESS#,,"List of ADC files","Hello, list of files: &OUTPUT#",,,)
Following print command prints proper list in the script output:
: P &OUTPUT#
However, when sending an email using SEND_MAIL, only first line of &OUTPUT# is there
Would you please suggest, how to print all the process lines in the outgoing email?
Thank you in advance for your help!