BookmarkSubscribeRSS Feed
Babloo
Rhodochrosite | Level 12
I have updated (just the data for one field) one CSV file in the UNIX server and that file should be read by File Writer transformation.But for some reasons, file writer transformation taking only the old file as I could see only the data from the old file in the resultant dataset.What would be likely cause for this issue?
4 REPLIES 4
Babloo
Rhodochrosite | Level 12
Filename is same and the log also telling the same. I just changed the data
without changing the file name. Dataset was created from the same file. I
want to know why the file which I updated is not being read by file writer
transformation.

Kurt_Bremser
Super User

Look at

  • the modification times of the file and the dataset as represented by the operating system
  • the timestamp(s) in the log

to see if the file timestamp < log timestamp <= dataset timestamp. Only then can you expect the dataset to change.

 

How do you view the dataset? Maybe that needs closing and re-opening.

Kurt_Bremser
Super User

Ummm, wait!

Are you really using the File Writer transformation? That creates a csv or other external file from a dataset, not the other way round. Changes in the csv will simply be overwritten with the unchanged contents of the dataset.

SAS Innovate 2025: Register Now

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!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 4 replies
  • 808 views
  • 0 likes
  • 2 in conversation