Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 15th, 2004, 07:54 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mainframs Data into SQL

Hi All,

I am VERY new as a programmer, and there are a lot of methods and techniques which I am not familiar. Please help! Here's my question. My company has a mainframe with all kind of data. I have an SQL server. I have access to both the mainframe and the SQL. My question is, is there a way to transfer ONLY data that I want from the mainframe to the SQL? What method is ther that I can use; must I FTP the data, or can I use tools provided my SQL to get the data?

Thanks for all your help!

Leon

 
Old January 15th, 2004, 10:28 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The mainframe can automate the FTP process and place the file in an accesible area, then you can use a job to run a dts package to load the data into your database. The file you will import will most likely be a comma delimited file.



Sal
 
Old January 16th, 2004, 10:48 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What database is the mainframe running? You might be able to connect to the mainframe directly with a SQL dts package and import the data that way.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old January 28th, 2004, 06:51 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Sal,

Often, I use the mainframe to FTPs delimited files to my PC hard drive. The string I use in the mainframe to do so look something like this:
PUT 'PHR.LP77U.DBSEQ.LEONTEST.D040114.T082400' D:\MYFOLDER\LEONTEST.DNL

NOTE: the above string is one line.
The problem with this is everytime I have an updated file, I have to manually go into the mainframe to change the date and time of the string. Then I'll have to type in "SUBMIT" to transfer the file.

Is there a way to automate this process, instead of manually submit it? If I need to FTPs data into my SQL Server, instead of to my "D:" drive, how do I do so? Is it even possible to FTPs the data directly from the mainframe to SQL, or must I FTP to an accessible area first? What iformation do I need from the SQL server if I can FTP to it directly? Thank you!!

LEon

Quote:
quote:Originally posted by sal
 The mainframe can automate the FTP process and place the file in an accesible area, then you can use a job to run a dts package to load the data into your database. The file you will import will most likely be a comma delimited file.



Sal
 
Old January 28th, 2004, 06:54 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The mainframe is running on a DB2 database. Please take a look at the reply I made to Sal above. Thank you.

Leon

Quote:
quote:Originally posted by planoie
 What database is the mainframe running? You might be able to connect to the mainframe directly with a SQL dts package and import the data that way.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Relational SQL Data to XML - Vet SQL/ASP - New XML JimiTheJett XML 1 December 4th, 2008 06:06 PM
SQL DATA TYPE Steffistella SQL Language 2 February 6th, 2007 05:11 PM
Combining Data from SQL hayley Classic ASP Basics 0 April 5th, 2006 09:59 PM
Reading Data From SQL Ridouan VB.NET 2002/2003 Basics 2 January 31st, 2005 05:43 PM
Import data in SQL Cinderella Classic ASP Basics 7 July 28th, 2004 05:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.