I am not sure if I am in the right forum, but I need to transfer a text file from the mainframe to the SQL Server 2000 or in a directory daily. How would I do this without manual intervention?
I rarely come within spitting distance of a mainframe, so I am kind of in the dark as far as how they work, but couldn't you just put the UNC path where your files are stored into where it asks you for directory?
If not, you may need to connect via the mainframe's IP address as if it were an internet site.
Hope this helps,
Alex
[small]----signature below----[/small]
I don't do any programming whatsoever
Ignorance of certain subjects is a great part of wisdom
OK,
I have the IP address for the mainframe. I understand that I will probably need to use the Dynamic Properties Task to specify the file to be downloaded. I am having trouble with that. What would the path for the file look like. Any examples? Any alternatives?
NOne of them have ever tried this. I must be missing something. What connections and tasks would I need in my DTS? Have you actually accomplished this? The DBA's and mainframe guys here don't have a clue.
I did try it from the command prompt. That worked. However, I still get the error message when trying to do it from my code. I tried creating a .bat file and executing it.
hum. if the command line worked, and the batch you mention now didnt, then i would say you are trying to ftp a file into a location not available at the server.
This is now requiring a bit more of work. Ill try it monday at work and see what i get. Ill then post here a dts package that will work.
Setup the ftp task, add username/password, and destination folder. Don't do anything else there and close task.
Then go to the disconnected properties of the package, search for the ftp task just created, and on the "sourceFilename" property you need to enter your mainframe dataset.
This is where its tricky, as the filename alone is not enough.
you need to enter as
'mainframe_dataset_name';'';'0';
Once this is done it will work if you have access to the dataset with the username/password you entered above.
On the destination folder use one on a local drive for testing.
Once you have done the above run the task AS IS. Do not submit it as a job to the SQL Server. If it works then do whatever changes required to the destination folder.
nothing else i can do then. file should be on the destination folder you placed on the ftp step, and the name will be the same as the mainframe dataset.
If no one else on your company can help you then I suggest you hire someone from around there to do that piece of work.
Alternatively, if you can supply me with vpn/vnc access to your computer i can do it remotely.
Thanks so much for trying. It would probably cost me my job to give you remote access. I don't think it's worth that. I will play around with it. I can't understand why it's not working. You know it has to be something very simple. That's usually the way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.