issue in FTP stage
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
issue in FTP stage
I created a job to move the text file to mainframe system.
i used FTP stage to do this. When i run the job i am getting the below error message.
#1)
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: Error while trying to open connection for sending data to the FTP server, FTP command CWD failed
i did some modifications in the job then i got the below error message.
put single quote before the '#inputfilename#' then i got the below error message.
#2)
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: 550 STOR fails: MSDOADF.TXT. User not authorized.
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: Error while trying to open connection for sending data to the FTP server, FTP command STOR failed
But if i execute it from DOS prompt(manually), it is running fine. How?
I am using the same username & password in DataStage.
is this the limitation of DataStage ? what is the course of action need to be done to do this? Strictly i don't want to use any Batches.
If we need to use batches then what is the purpose of FTP stage. So please don't ask me to write any .BAT file to do this.
i used FTP stage to do this. When i run the job i am getting the below error message.
#1)
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: Error while trying to open connection for sending data to the FTP server, FTP command CWD failed
i did some modifications in the job then i got the below error message.
put single quote before the '#inputfilename#' then i got the below error message.
#2)
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: 550 STOR fails: MSDOADF.TXT. User not authorized.
ALRT_F02_FTP_OUTPUT..FTP_Plug_in_2: Error while trying to open connection for sending data to the FTP server, FTP command STOR failed
But if i execute it from DOS prompt(manually), it is running fine. How?
I am using the same username & password in DataStage.
is this the limitation of DataStage ? what is the course of action need to be done to do this? Strictly i don't want to use any Batches.
If we need to use batches then what is the purpose of FTP stage. So please don't ask me to write any .BAT file to do this.
Karthik
You really should write a... oh, never mind.
What does your job design look like? Do you need to ftp to the 'home directory' of the ftp user or do you need to 'cd' somewhere first and then do the put? Can you capture a manual session and copy/paste it here so we can see all of the steps you go through for this?
What does your job design look like? Do you need to ftp to the 'home directory' of the ftp user or do you need to 'cd' somewhere first and then do the put? Can you capture a manual session and copy/paste it here so we can see all of the steps you go through for this?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
Hi,chulett wrote:You really should write a... oh, never mind.
What does your job design look like? Do you need to ftp to the 'home directory' of the ftp user or do you need to 'cd' somewhere first and then do the put? Can you capture a manual session and copy/paste it here so we can see all of the steps you go through for this?
I found the issue. Thanks !
Karthik
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
Hey... Yes ! it is very secret so i will tell only to you....ok...chulett wrote:Is it a secret?
Two things you should really do now. Post the resolution so others coming here with the same problem will know what fixed it for you and mark the post as Resolved using the big button at the top of the page.
I used single quote before and after the Remote file name.
i.e click Input tab --> Properties --> RemoteFileName --> entered the file name with single quote.
'<filename>'.
It ran successfully....But ...i need to implement the below command in FTP stage....
quote site REC=FB LR=1508 CYL PRI=940 SEC=94
Karthik
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
i tried it... but it is throwing the error message.chulett wrote:Pretty much for what they're named... and seems to me like you'd use the 'Transaction Before' command to perform your 'quote site etc' command, though I've never used it. ...
ALRT_C02_FTP_OUTPUT..FTP_Plug_in_2: Error while trying to open connection for sending data to the FTP server, unable to execute 'Transaction Begin command'
Last edited by karthi_gana on Mon Aug 31, 2009 3:33 pm, edited 1 time in total.
Karthik
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
how will you use 'quote site' from FTP stage ?karthi_gana wrote:i tried it... but it is throwing the error message.chulett wrote:Pretty much for what they're named... and seems to me like you'd use the 'Transaction Before' command to perform your 'quote site etc' command, though I've never used it. ...
Karthik
As I said, never used them (or needed to do any such mainframe thing) so took a guess as to what might work. Time to involve your official support provider it seems, that or wait for someone who's done that kind of thing before to wander along.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
since i am new to Datstage stage,i don't know the other options. can u tell me what else work out for my requirement?chulett wrote:As I said, never used them (or needed to do any such mainframe thing) so took a guess as to what might work. Time to involve your official support provider it seems, that or wait for someone who's done that kind of thing before to wander along.
Karthik
-
- Premium Member
- Posts: 457
- Joined: Tue Sep 25, 2007 4:05 pm
karthi_gana,karthi_gana wrote: how will you use 'quote site' from FTP stage ?
You cannot use "quote site" command from FTP stage as it doesn't support FTP commands. I had exactly the same issue (version DS 7.5.1 Server) as I had to issue
Code: Select all
quote site lrecl...
My workaround was...gulp ...to write a Batch script (.bat) to execute the FTP commands.
Vivek Gadwal
Experience is what you get when you didn't get what you wanted
Experience is what you get when you didn't get what you wanted
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
Thanks vivek for sharing your experience...vivekgadwal wrote:karthi_gana,karthi_gana wrote: how will you use 'quote site' from FTP stage ?
You cannot use "quote site" command from FTP stage as it doesn't support FTP commands. I had exactly the same issue (version DS 7.5.1 Server) as I had to issuecommand as I wanted to increase my Logical record length on the Mainframe side. I opened up a ticket with IBM and after much deliberation on their end (they took 2 weeks to tell me this...) they told me that it is indeed a drawback of the FTP stage that it cannot execute the FTP commands after opening the session and they said that it is being discussed to include the functionality in future releases. This happened at around Aug-Sep 2008. As 8.x version was already released, I doubt that the functionality is provided in that release!Code: Select all
quote site lrecl...
My workaround was...gulp ...to write a Batch script (.bat) to execute the FTP commands.
can you send me the link which IBM explained elaborately about this? I just want to share it with my management.
Karthik