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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1393 views
  • 1 like
  • 3 in conversation