Hi,
We are working in DS 7.1 version Server Job and the server OS in Windows.
We have a scenario where we need to read a hugh file from the Mainframe system and then process it.
- We cannot use a CFF stage to read this Mainframe file as it is in a remote Mainframe machine. So, we have use a FTP stage to fetch it from a remote machine.
- But what is the metadata that we need use in the FTP stage. We have the Cobol copybook of the Mainframe file that we need to fetch. But the copybook imported metadata has 'Level number' attribute for each column and so this metadata cannot be used in a FTP stage. It can be used only in a CFF stage.
- The file that we need to process is very huge (about 40 million records). So we didn't want to transfer it to DS server and then do the processing.
Please give us your thoughts on how we could proceed in this scenario.
Those who have worked on reading files directly from a Mainframe system, please share your experience on how you acheived this.
Thank you.
Extracting data from a File in the Mainframe system
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
No matter what you do you're going to need to move the file from the mainframe to your DataStage server. Why not have the mainframe push the file across and then read it with a Complex Flat File stage, which is intended for use with COBOL file definitions, handling level numbers according to your requirements (for example, flatten, normalize).
Have the mainframe push a second, empty file after the first. Wait for the second file to appear. You will know, by this fact, that the first has fully arrived.
Have the mainframe push a second, empty file after the first. Wait for the second file to appear. You will know, by this fact, that the first has fully arrived.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Ray,
I do not actually require all those millions of records for my processing. I only need some of those records based on a condition.
So, I thought if there is some way I could directly extract those records from the Mainframe system itself, then I could filter only those records that I need by applying some constraint. This way, I could minimize the record count when the data actually gets to the disk for the first time on the DS server.
I do not actually require all those millions of records for my processing. I only need some of those records based on a condition.
So, I thought if there is some way I could directly extract those records from the Mainframe system itself, then I could filter only those records that I need by applying some constraint. This way, I could minimize the record count when the data actually gets to the disk for the first time on the DS server.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You're working for someone who expects you to process mainframe volumes on a Windows server?!! Have they purchased the mainframe edition of DataStage, so at least you have have DataStage generate code that can run on the mainframe? (Didn't think so.)
There is no mechanism whatsoever that means server jobs can initiate processing on a mainframe. Sure you can initiate an FTP transfer, but that's it. You transfer whatever's there.
There is no mechanism whatsoever that means server jobs can initiate processing on a mainframe. Sure you can initiate an FTP transfer, but that's it. You transfer whatever's there.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
You need to compromise either of the one. FTP stage is not tuned to read mainframe files. Atleast as far as I have seen, it doesn't support all the functionality available in CFF stage. So either you need to transfer the whole file into Datastage and read it using CFF and apply you rules, or you need to demand for USS, which you read the files and process it from the remote server and transfer the required data to Datastage server.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'