Bulk data Sync
Posted: December 27th, 2024, 5:06 am
Dear Team,
I have bulk csdbe dataset in around few hundred files to upload csweb for this I use following code
list string dataFile;
dirlist(dataFile, ".\data\", filter := "*.csdbe", recursive := true);
do numeric ctr = 1 while ctr <= dataFile.length()
if setfile(DATA_DICT,dataFile(ctr)+"|password=1234")=1 then
if syncconnect(CSWeb, "http://10.10.10.10/api","user","1234") then
syncdata(PUT, DATA_DICT);
endif;
endif;
enddo;
Its not working can give me a clue to resolve this issue, also Is it possible to load data to "dirlist" batch wise
I have bulk csdbe dataset in around few hundred files to upload csweb for this I use following code
list string dataFile;
dirlist(dataFile, ".\data\", filter := "*.csdbe", recursive := true);
do numeric ctr = 1 while ctr <= dataFile.length()
if setfile(DATA_DICT,dataFile(ctr)+"|password=1234")=1 then
if syncconnect(CSWeb, "http://10.10.10.10/api","user","1234") then
syncdata(PUT, DATA_DICT);
endif;
endif;
enddo;
Its not working can give me a clue to resolve this issue, also Is it possible to load data to "dirlist" batch wise