Hi All,
I am trying to read a COBOL file using Complex flat file stage and write it into a flat file.(Complex FF - Tfm - Seq File)
Note: In CFF stage, DataFormat mentioned it as EBCIDIC and Record style as Binary. Source file I have FTPed from Mainframe server in Binary mode.
All columns are populating properly except Packed decimal columns.
Simply Packed decimal columns are coming with some unknown characters.
I searched in forum and unfortuanetly I didn't find any solution for this.
Can any one please help me on this.
Reg: Problem while reading COBOL file
Moderators: chulett, rschirm, roy
Reg: Problem while reading COBOL file
Thank You,
Sudarsan AVS
Sudarsan AVS
Can you post the hex values in the source for one of those packed decimal columns as well as the PIC clause for that column?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
Hi,
Thanks for Quick reply.
PIC clause for the column is: PIC S9(13)V9(5) COMP-3.
PIC clause used in the CFF stage:PIC S9(13)V9(5) COMP-3.
Sorry, I am unable to provide the Hex values for that columns because I don't have a access to the mainframe system. Mainframe wiil FTP the source file and provide to us.
Thanks for Quick reply.
PIC clause for the column is: PIC S9(13)V9(5) COMP-3.
PIC clause used in the CFF stage:PIC S9(13)V9(5) COMP-3.
Sorry, I am unable to provide the Hex values for that columns because I don't have a access to the mainframe system. Mainframe wiil FTP the source file and provide to us.
Thank You,
Sudarsan AVS
Sudarsan AVS
But in your first post you mentioned that you had a binary local copy - that is the one where I'd like to see what the binary values are and if they are actually a COMP-3 representation.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Use notepad++ or some other tool that will let you see the true binary contents. Using the CFF stage is "too late" to find errors in this case.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>