Mainframe MVS File to SF/CFF stage. Values Incorrect
Posted: Wed Feb 08, 2006 3:31 pm
So here is my problem.
I have to bring a file that is stored on a MVS mainframe server and load it into a DB2 table.
I have FTP'd the file over directly onto the UNIX box.
I have a Cobol copybook directly from the mainframe that the mainframe uses to interpret the File.
Part of the copybook reads as follows.
05 CUSTOMER PIC 9(06) COMP-3.
05 MKT-DIVISION PIC X(02).
I have imported the copybook into Datastage, and used it to load the source SF/CFF stage (I have tried both).
Datastage's metadata says the Customer field is brought in as a Decimal 6
Datastage's metadata says the MKT-DIVISION is brought in as a Char 2.
I cannot read the correct Customer number into Datastage. There is an inherent default specified for import/export problems of columns and that is the value I see.
Moreover, I am not sure what default settings I need to view these things correctly. When I load the copy book, the SF/CFF stage says the data is EBCDIC - binary. If I try to view data in datastage based on that ---- I see a bunch of jibbersh. If I change the defaults to ASCII-text. I can see values properly in all of my columns -- except anything other than char datatypes is displayed incorrectly (meaning I am seeing that defauly value).
What do I need to do differently? I pulled the copybook right off the mainframe myself --- I have used that copybook on the mainframe to interpret the file and then I see the correct values. I am confused why Datastage is not doing this right now. Any advice, next steps to provide would be greatly appreciated.
Also, if you know of any other options on how to FTP this differently, if there is a way to make it comma separated before it comes over or anything --- please help. I no nothing of mainframe and am learning as I go.
Thanks so much.
Dan
I have to bring a file that is stored on a MVS mainframe server and load it into a DB2 table.
I have FTP'd the file over directly onto the UNIX box.
I have a Cobol copybook directly from the mainframe that the mainframe uses to interpret the File.
Part of the copybook reads as follows.
05 CUSTOMER PIC 9(06) COMP-3.
05 MKT-DIVISION PIC X(02).
I have imported the copybook into Datastage, and used it to load the source SF/CFF stage (I have tried both).
Datastage's metadata says the Customer field is brought in as a Decimal 6
Datastage's metadata says the MKT-DIVISION is brought in as a Char 2.
I cannot read the correct Customer number into Datastage. There is an inherent default specified for import/export problems of columns and that is the value I see.
Moreover, I am not sure what default settings I need to view these things correctly. When I load the copy book, the SF/CFF stage says the data is EBCDIC - binary. If I try to view data in datastage based on that ---- I see a bunch of jibbersh. If I change the defaults to ASCII-text. I can see values properly in all of my columns -- except anything other than char datatypes is displayed incorrectly (meaning I am seeing that defauly value).
What do I need to do differently? I pulled the copybook right off the mainframe myself --- I have used that copybook on the mainframe to interpret the file and then I see the correct values. I am confused why Datastage is not doing this right now. Any advice, next steps to provide would be greatly appreciated.
Also, if you know of any other options on how to FTP this differently, if there is a way to make it comma separated before it comes over or anything --- please help. I no nothing of mainframe and am learning as I go.
Thanks so much.
Dan