Hi All,
di di-studio di_studio dis distudioI have a businees users in different countries, each country have their file format(ex: .csv, txt,mdb...).
But within a same country their might be multiple customers and they can send the multiple files.suppose in india we have 5 customers in 5 different states they can send 5 files from 5 states, all file formats of india are same
I need to create a process to load files of each country in target table using SAS DI,the number of files per country may vary at any time.
Any help on this would be helpful and appreciated.
Regards,
Srini
Do the different files formats have the same internal structure? (no of fields, content, data type etc).There are probably many ways to this; ranging from user written file, using parameters or building separate jobs for each file type. To chose is part of design process and should be done on site.
I agree with @LinusH's comment.
My first thought is to set up a dedicated conversion for each country. This conversion i) inputs the data, ii) edits it, and iii) converts it to a SAS dataset format. Run this for each file, and then the last element appends all of the files together.
From there on, you can use this file with standard DIS processes.
I'm quite familiar with having different file formats from different stakeholders. Personally, I think if you try to find any shortcuts or efficiencies, you'll end up frustrated in the long term.
Tom
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.