Author: Robert Sample
Posted: Sat Nov 19, 2016 1:57 am (GMT 5.5)
We are replying like this because you do not provide adequate information for us to help you. Between us, Bill and I have made over 15,000 posts to this forum (and many more to other forums) -- so we've got a great deal of experience in dealing with various questions. When we keep asking for the same things over and over, you need to look at what you are posting instead of blaming the messenger.
At least one of your problems is here. SAS data set WORK.FTPREC is being built with variables FTPIN, FTPOUT, FTPOPT, FTPMSK -- and only those variables. You input variable FTP_REC as a 100-byte character variable. Since it is not one of the KEEP variables, it is not kept and hence your FTPREC SAS data set has no data in it. Your DELETE statement will not have a file name associated with it. Your GET example moves FTP_REC to the 4 KEEP variables, one at a time, and hence the FTP GET will have a valid FTPIN value. The fact that you have such differences in your code is one reason why we've been asking you to post both the working and nonworking code for at least 2 days now.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth
Posted: Sat Nov 19, 2016 1:57 am (GMT 5.5)
Quote: |
You might have seen so many people posting questions, may be becuase of that you are replying like this |
Code: |
DATA FTPREC(KEEP=FTPIN FTPOUT FTPOPT FTPMSK); INFILE DASA END=LASTOBS; INPUT @1 FTP_REC $100. ; DATA DASB(KEEP=FTPINP); LENGTH FTPINP $70.; SET FTPREC; IN_PATH1 = 'CD \PATH1\PATH2\'; IN_PATH2 = 'DIR'; IN_PATH3 = 'DELETE' || FTPREC; |
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth