Help using Base SAS procedures

Calling a shell script with in SAS program - not working

Reply
Contributor
Posts: 40

Calling a shell script with in SAS program - not working

Hi,

I am using below Shell program in sas program using X unix command and I am getting errors. Not sure why?

#!/usr/bin/sh

sftp -b myserver.com /user:myname /password:mypasswd

bin

cd /home/prod/myhome

mget *.*

bye

Can someone please provide insight on this ?

thanks!!

Super User
Posts: 9,671

Calling a shell script with in SAS program - not working

I copied it from somewhere.

#!/bin/ksh

HOST='xx.xx.xx.xxx'

USER='user'

PASSWD='pass'

ftp -n $HOST <<!EOF

quote USER $USER

quote PASS $PASSWD

prompt

put filename.zip

bye

!EOF

Ksharp

Ask a Question
Discussion stats
  • 1 reply
  • 120 views
  • 0 likes
  • 2 in conversation