Originally posted by: anthcorr
Hello,
I've tried the solution proposed but I'm facing to a little issue.
First, I tried to test this solution using a map with 1 input card that will get the list of the files and one output card that will treat this list of files to get each file one by one. It correctly worked.
But, after this, I had to adapt this map to get the list of the files with an output card instead of an input card, and this is where I have an issue. I've made a functional map to get the list of the files but it seems the result of the functional is not correctly applied or interpreted by the type tree (the same as the one used by the input card in the first map). All the files are in the same "block".
See an example of my problem :
With Map 1 (with list of files got from the input card) :
The map is connecting to the FTP to get the list of the files
URL FTP:
//test:*****@localhost/wtx/*.*;type=D will be used. [WSAStart: Entering] [WSAStart: bWSStarted = 0, nWSClients = 0] [WSAStart: Attempting WinSock initialization.] [WSAStart: WinSock initialized successfully.] Windows Sockets Version 1.1 will be used. Windows Sockets Version 2.2 is supported. Windows Socket Description is
'WinSock 2.0'. Windows Socket System Status is
'Running'. Windows Socket supports up to 32767 socket(s). Windows Socket supports UDP datagram of up to 65467 bytes. Windows Socket has no additional vendor-specific information. Sockets Client ID 1 enabled. [WSAStart: Exiting (rc = 1)] URL user:
'test'. URL pass:
'****'. URL host:
'localhost'. URL port:
'21'. URL path:
'wtx/*.*'. URL type:
'D'.
Then each file is download one by one.
Options used: trace,verbose,append,name,url URL FTP:
//test:*****@localhost/wtx/tata.txt;type=A will be used. Using C:\DOCUME~1\ACORRA~1.LUT\LOCALS~1\Temp\B5D.tmp as tempfile. URL user:
'test'. URL pass:
'****'. URL host:
'localhost'. URL port:
'21'. URL path:
'wtx/tata.txt'. URL type:
'A'. Using ftp: protocol. Setting AIX/UNIX-specific parameters. <PWD >257
"/wtx" is current directory. (S) <TYPE A >200 Type set to A (S) <PASV >227 Entering Passive Mode (127,0,0,1,35,178) (S) Using port
'9138'
for the connection. Connecting to
'127.0.0.1'. Socket Opened. Connected. <NLST tata.txt >150 Connection accepted (S) >tata.txt Socket Closed.
Same code for all other files.
With Map 2 (with the list got from the output card) :
The map lists correctly the files as the first map does but when it should download the files one by one, I have the following :
Fetch Unit is 0. Card Mode is Integral. Run Started at 11:08:59.781 on 11/10/09. Options used: trace,verbose,append,name,url URL FTP:
//test:*****@localhost/wtx/tata.txt test.txt titi.txt toto.txt ;type=A will be used. Using C:\DOCUME~1\ACORRA~1.LUT\LOCALS~1\Temp\B62.tmp as tempfile. URL user:
'test'. URL pass:
'****'. URL host:
'localhost'. URL port:
'21'. URL path:
'wtx/tata.txt test.txt titi.txt toto.txt
'. URL type:
'A'. Using ftp: protocol. Setting AIX/UNIX-specific parameters. <PWD >257
"/wtx" is current directory. (S) <TYPE A >200 Type set to A (S) <PASV >227 Entering Passive Mode (127,0,0,1,35,187) (S) Using port
'9147'
for the connection. Connecting to
'127.0.0.1'. Socket Opened. Connected. <NLST tata.txt test.txt titi.txt toto.txt >150 Connection accepted (S)
All the files are in the same element of the typetree, instead of one file by one element...
I think I have made a little mistake with my functional map but I can not find it. Could someone help me please ?
I have attached the source code of these 2 maps.
If you need more explanation of my problem, just request it because I'm not sure I've been very cleared.
Thank you very much !
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender