BookmarkSubscribeRSS Feed
HeatherNewton
Quartz | Level 8

I have a line looking very strange

it starts with x followed by double quote and end in double quote

 

X"mv &GXXXX/data file1                    &GXXXX/data_file2"

 

inside the double quote is changing content of one file to another..

 

is this not sas command but linus or from dos? what does it mean?

4 REPLIES 4
HeatherNewton
Quartz | Level 8
the exact line is as follows:

x"mv &G_IFC_STG_PATH/atsm_static.sas7bdat &G_IFC_STG_PATH/atsm_stat_bak.sas7bdat "

please help thx
Sajid01
Meteorite | Level 14

Hello @HeatherNewton 
This line executes the operating system (Linux)  command mv (move).
It is renaming the file atsm_static.sas7bdat  to atsm_stat_bak.sas7bdat. (Note you have _bak  added in the new name).

&G_IFC_STG_PATH is the macro variable that shows the path or location of the files.

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 Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 809 views
  • 1 like
  • 3 in conversation