BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
laika_matias
Obsidian | Level 7

Hello,

I am trying to get list of files from Linux directory using psftp. SAS is installed on Windows

SysCmd = "C:\path\psftp.exe" myuser@server -P port -pw mypassword -b C:\path\bag.bat -v >C:\path\bag.log;

Everything works fine until the "-v >C:\path\bag.log" part. I am unsure how to generate a log file for this operation.

 

I will be grateful for a response 🙂

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
laika_matias
Obsidian | Level 7
I've already found the solution 🙂 I created a batch file and invoked it in another batch file.

View solution in original post

2 REPLIES 2
Sajid01
Meteorite | Level 14

Hello

What are the commands in the batch file bag.bat ?

laika_matias
Obsidian | Level 7
I've already found the solution 🙂 I created a batch file and invoked it in another batch file.

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
  • 2 replies
  • 658 views
  • 0 likes
  • 2 in conversation