Focal Point
Regd: Database extraction

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8601008712

March 12, 2007, 04:24 PM
Rajesh Reddy
Regd: Database extraction
Hi All,

I am extracting the FOCUS database file and Put it into the flat file. The database contain the 300 to 400 fields. While extracting data from all the fields it giving the SOC4 abend. If we extracting below 167 fields it executing fine. Please let me know how to extract all the fields in the FOCUS database file.

Thanks,
Rajesh
March 12, 2007, 05:55 PM
FrankDutch
Rajesh

are these 300/400 fields in one record or is it split into several segments.

You can split it in the following way
TABLE FILE SPLIT
PRINT firts 100 fields
BY KEYFIELDS
ON TABLE HOLD AS FIRST100
END

TABLE FILE SPLIT
PRINT second 100 fields
BY KEYFIELDS
ON TABLE HOLD AS SEC100
END

etc

But why are you doing this?
What will be the next step whit these 4 hold files....




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

March 12, 2007, 06:33 PM
Rajesh Reddy
The 300-400 fields are spread across segments.

We are planning to extract all the data from FOCUS and load it to a sequal server. Since this data will not be used very often, we are planning to create one row in SQL server for one record in FOCUS.

Thanks
Rajesh
FOCUS 7.1.1 -> Main Frames -> Flat files

This message has been edited. Last edited by: Rajesh Reddy,
March 12, 2007, 07:31 PM
Darin Lee
Have you tried just print all your fields and the ON TABLE HOLD FORMAT SQLMSS? seems like this would be simpler then you could just move it (if necessary) and import it or associate it (or whatever the SQL server terminology is) in you SQL server database.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
March 13, 2007, 04:28 AM
FrankDutch
Information Builders also has a system called ETL, it's in fact a part of I-Way I think and that is build to Extract, Transform and Load data from one database into an other.

I think that would be much more efficient, since you do not have to write the load application.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7