Currently I'm using below code
To fetch data from Mainframe
FILENAME dset1 FTP "'&fac'" RECFM=VB LRECL=266 USER=&USERID PASS=&password HOST="&host" DEBUG PROMPT;
To load into SQL
libname sql_test odbc dsn=XXXX_test user="XXXXX" pass="XXXXXX" schema=XXXXX;
proc sql;
connect to odbc (dsn=XXXXX_test user=XXXX pwd=XXXX);
execute(truncate table Schema.ABC) by odbc;
insert into sql_test.ABC(Name, height)
select * from _all;
disconnect from odbc;
quit ;
...............................................................................................................................................................
Above code is working perfectly fine, but I'm looking for faster way to load and fetch data... please help me.