On the mainframe (MVS) I know how to read in multiple datasets using the concatenated DD stmt. Is there something similar for pc-SAS (Windows) when reading MVS datasets using the FILENAME FTP statement?
Not that I'm aware of - the ability to concatenate files is within the FILENAME specification and enclosing your quoted files in parentheses. I don't expect that you can open two concurrent FTP connections as a concatenation.
don't give up just yet.
The syntax definition allows concatenation within the filename statement.
I just had some success with code like[pre]filename fcont ftp ("'AUP.SREED.ACT.AVP.PETER(H)'"
user= 'your user ID'
prompt /*for password*/
data _null_ ;
length filen $200 ;
infile fcont filename= filen ;
if filen ne lag(filen) then put filen= ;
put _infile_ ;
run ; [/pre]PeterC
The EOV INFILE statement option provides a more general method for concatenation boundary detection. Using changes to the value of FILENAME would not work if the files have the same name by design or accident when FILENAME is defined with improper attributes.