Sample Utility Scripts
Fexp : .ROUTE MESSAGES WITH ECHO TO FILE 'log_file' ; .DATEFORM ANSIDATE; .RUN FILE logon_file .LOGTABLE tabnam; .BEGIN EXPORT TENACITY 4 SESSIONS 5 SLEEP 6; .EXPORT OUTFILE 'outfile name and locations' MODE RECORD FORMAT TEXT; 'SQL Query .You can concatenate all fields and then cast them to particular length to avoid Junk Characters ' ) X ; .END EXPORT; .LOGOFF; -- Fast load dateform ANSIDATE; errlimit 1000000; tenacity 4; sessions 10; sleep 6; .LOGON ipaddress/logon,password; DROP TABLE .ET_tab1 ; DROP TABLE .UV_tab2; DELETE FROM STG_tab3; SET RECORD VARTEXT "|"; define Field1 (VARCHAR(10)) Field2(VARCHAR(18)) Field3 (VARCHAR(20)) file=:CF.ImportFileName; show; begin loading STG_tab3 errorfiles ET_tab1, .UV_Tab2 checkpoint 25000000 ; insert into STG_tab3 ( Filed1, Field2, ...