dbTalk Databases Forums  

AS400 via FTP

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss AS400 via FTP in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Miguel Salles
 
Posts: n/a

Default AS400 via FTP - 10-20-2004 , 12:49 PM






Need help!!

How do I get to FTP AS400 data? My source table is called F091x.
I'm really a AS400 newbie, so, what do I ask my AS400 administrator for?
They are asking me if I want it exported to a text file now, Do I? Can I FTP
the production File? Will it lock the table for other users access??
How do I read it afterwards?
My process reads 1 million rows from this table every day and it is getting
very annoying (takes an hour!)
I really need a better way to extract my information.

Thanks in advance

Reply With Quote
  #2  
Old   
Michael Otey
 
Posts: n/a

Default Re: AS400 via FTP - 10-20-2004 , 06:23 PM






Hi Miguel,

There are a lot of questions here....

First, ftp works to the AS/400 just like most other systems. To test it just
enter ftp as400name at the command prompt and you'll be promoted to signon
to the AS/400. If you're not then the AS/400 FTP host server is probably not
started. You start it using the STRTCP command.
If you get connected, the FTP GET subcommand is used to retrieve a file. One
thing to look out for is the fact that FTP from the AS/400 doesn't convert
packed data fields. If your file has them you'll need to make a workaround.

The table is not locked for other users access while FTP is running.

Afterward you'll end up with a text file on your Windows system. You'll have
to use that file to import to SQL Server.

If you're currently using DTS for this job and the IBM ODBC driver I'd
suggest first going into the Driver Manager | Performance Tab | Advanced and
increasing the Block Size value. The default is 32K but you'll get better
performance going to 1024K or even higher. Also make sure the Enable data
compression setting is checked on the Performance tab.


Michael Otey

"Miguel Salles" <MiguelSalles (AT) discussions (DOT) microsoft.com> wrote

Quote:
Need help!!

How do I get to FTP AS400 data? My source table is called F091x.
I'm really a AS400 newbie, so, what do I ask my AS400 administrator for?
They are asking me if I want it exported to a text file now, Do I? Can I
FTP
the production File? Will it lock the table for other users access??
How do I read it afterwards?
My process reads 1 million rows from this table every day and it is
getting
very annoying (takes an hour!)
I really need a better way to extract my information.

Thanks in advance



Reply With Quote
  #3  
Old   
Michael Vardinghus
 
Posts: n/a

Default Re: AS400 via FTP - 11-15-2004 , 12:44 PM



Perhaps need this soon:

Was DTS / ODBC and alternative and should this be chosen or should you just
get
file dumps (format ?) from AS400 ?

"Michael Otey" <mikeo (AT) teca (DOT) com> wrote

Quote:
Hi Miguel,

There are a lot of questions here....

First, ftp works to the AS/400 just like most other systems. To test it
just
enter ftp as400name at the command prompt and you'll be promoted to signon
to the AS/400. If you're not then the AS/400 FTP host server is probably
not
started. You start it using the STRTCP command.
If you get connected, the FTP GET subcommand is used to retrieve a file.
One
thing to look out for is the fact that FTP from the AS/400 doesn't convert
packed data fields. If your file has them you'll need to make a
workaround.

The table is not locked for other users access while FTP is running.

Afterward you'll end up with a text file on your Windows system. You'll
have
to use that file to import to SQL Server.

If you're currently using DTS for this job and the IBM ODBC driver I'd
suggest first going into the Driver Manager | Performance Tab | Advanced
and
increasing the Block Size value. The default is 32K but you'll get better
performance going to 1024K or even higher. Also make sure the Enable data
compression setting is checked on the Performance tab.


Michael Otey

"Miguel Salles" <MiguelSalles (AT) discussions (DOT) microsoft.com> wrote in message
news44ECF70-A18D-456C-8B1A-82B737D39898 (AT) microsoft (DOT) com...
Need help!!

How do I get to FTP AS400 data? My source table is called F091x.
I'm really a AS400 newbie, so, what do I ask my AS400 administrator for?
They are asking me if I want it exported to a text file now, Do I? Can I
FTP
the production File? Will it lock the table for other users access??
How do I read it afterwards?
My process reads 1 million rows from this table every day and it is
getting
very annoying (takes an hour!)
I really need a better way to extract my information.

Thanks in advance





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.