File VSAM

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
berettae
Participant
Posts: 5
Joined: Tue Jan 21, 2003 11:57 am
Location: Italy

File VSAM

Post by berettae »

I have to extract a large amount of data from VSAM file on AS/400 and to SQL Server on Windows NT, could anyone give some hints?
Does DataStageXE work goog with VSAM file?
Do I need to install something on AS/400 or just run COBOL programm generated by DataStageXE?
What does the DataStageXE COBOL programm produce? Sequential files or what?

Thanks
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Been Awhile since I had the 390 course, but it seems to me you didn't :(
so I strongly recomend you do it, or at least get the course book materials and go thru them.
(I don't want to misslead you about it so I won't reply specificly to your question)
other people that use/know this stuff better then me can give you a good answer.
Sorry I can't help :(
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
crouse
Charter Member
Charter Member
Posts: 204
Joined: Sun Oct 05, 2003 12:59 pm
Contact:

Post by crouse »

DS 390 probably won't help you here since DS 390 COBOL code (should) only runs on IBM 390 machines, but...

VSAM files are (at least) two files in one... one for data, the other is an index into the data. What you could is have an AS400 admin run a system utility (the name escapes me now) to create just the data file from the VSAM file, so in effect you have a flat sequential file.

Do a BINARY ftp of the file to your DS server, bring the COBOL FD into DS that describes the file, then use the CFF (Complex Flat File) stage to read the data.

At this point your free to load it into SQL server.

-Craig Rouse
Griffin Resources, Inc
Post Reply