Zxdl Script Review
#ZXDL_VERSION 2.0 #ENV PRODUCTION SET $ftp_host = "ftp.example.com" SET $ftp_user = "automation" SET $ftp_pass = "secure123" SET $work_dir = "/opt/zxdl/work/" SET $log_file = $work_dir + "process.log"
SET $input_path = "/data/incoming/" SET $log_level = "DEBUG" A job contains one or more tasks executed sequentially: zxdl script
| Error Message | Likely Cause | Solution | |--------------------------------|---------------------------------------|-------------------------------------------| | Directive not recognized | Outdated interpreter or typo | Verify #ZXDL_VERSION matches your runtime | | Variable expansion failed | Unescaped special characters | Use quotes: SET $path = "C:\my dir" | | Job timeout exceeded | Infinite loop or slow external call | Increase #TIMEOUT or optimize nested loops | | File not found in TASK | Working directory misconfigured | Use absolute paths or CD before task | | FTP login rejected | Credentials expired or IP blocked | Rotate passwords or whitelist your IP | #ZXDL_VERSION 2
JOB process_invoices TASK extract_data COMMAND read_csv --file $input_path/invoices.csv END_TASK TASK transform_amounts COMMAND multiply --column net_total --factor 1.19 END_TASK END_JOB Conditional branching uses IF , ELIF , and ELSE : and ELSE :