In the following example, we want to run the script on WIN01 host and the .csv file is saves as Search.csv in the C:\temp directory. We want to export it to the C:temp\export directory:
:SET &HOST# = "WIN01"
:SET &CSV_FILE# = "c:\temp\search.csv"
:SET &EXPORT_PATH# = "C:\temp\export\
:SET &HND#=PREP_PROCESS_FILE(&HOST#,&CSV_FILE#,,"COL=DELIMITER",'DELIMITER=";"')
:PROCESS &HND#
: SET &Line#=GET_PROCESS_LINE(&HND#,1)
: PRINT "<&Line#>"
: SET &OBJECT# = &Line#
: SET &File# = "&EXPORT_PATH#&line#.xml"
: SET &Ret# = EXPORT (&Object#, &File#)
:ENDPROCESS
Parent Topic |