Conversion problem of High values using CFF stage
Posted: Mon Sep 28, 2009 1:39 pm
Hi All,
Please help me handling HIGH values in Complex flat file stage.
I am reading a cobol file using complex flat file stage and writing to sequential file.
one field got defined as PIC X and got HIGH values in the source mainframe file.
I am getting Junk () as out put in sequential file for that field Char(1).
Same thing with comp-3 fields.
One comp-3 field is filled with HIGH values another with ZERO.
Both the fields got associated redefined fields But in out put of first
redefined field is junk and another field is space.
Please let me know how to handle these high values using complex flat file stage.
5 MAX-F PIC S9(13)V99 COMP-3. (Position 107)
5 MAX-FV REDEFINES MAX-F PIC X(8 ).
........................
........................
5 FEE PIC S9(13)V99 COMP-3. (Position 142)
5 FEE-HV REDEFINES FEE PIC X(8 ).
MAX_F/MAX_FV____________________________ FEE/FEE_HV
107 position_______________________________ 142 position
................................ . ...... .... ............
FFFFFFFFFFFFFFF 00F000000000000014 000000 00F000000000000004
FFFFFFFFFFFFFFF 0FF0000100C00000C0 00000C 0FF0000000C00000C0
High Values__________________________________ Zero
Out put
MAX_F : 0000000000000.00.
MAX_FV :
FEE : 0000000000000.00
FEE_HV : (Spaces)
Please let me know how can I get spaces in redefined MAX_FV Field when its original field MAX_F got HIGH values.
and how can I get spaces in the sequential file fields when these fields got HIGH values in source file.
Thanks
Please help me handling HIGH values in Complex flat file stage.
I am reading a cobol file using complex flat file stage and writing to sequential file.
one field got defined as PIC X and got HIGH values in the source mainframe file.
I am getting Junk () as out put in sequential file for that field Char(1).
Same thing with comp-3 fields.
One comp-3 field is filled with HIGH values another with ZERO.
Both the fields got associated redefined fields But in out put of first
redefined field is junk and another field is space.
Please let me know how to handle these high values using complex flat file stage.
5 MAX-F PIC S9(13)V99 COMP-3. (Position 107)
5 MAX-FV REDEFINES MAX-F PIC X(8 ).
........................
........................
5 FEE PIC S9(13)V99 COMP-3. (Position 142)
5 FEE-HV REDEFINES FEE PIC X(8 ).
MAX_F/MAX_FV____________________________ FEE/FEE_HV
107 position_______________________________ 142 position
................................ . ...... .... ............
FFFFFFFFFFFFFFF 00F000000000000014 000000 00F000000000000004
FFFFFFFFFFFFFFF 0FF0000100C00000C0 00000C 0FF0000000C00000C0
High Values__________________________________ Zero
Out put
MAX_F : 0000000000000.00.
MAX_FV :
FEE : 0000000000000.00
FEE_HV : (Spaces)
Please let me know how can I get spaces in redefined MAX_FV Field when its original field MAX_F got HIGH values.
and how can I get spaces in the sequential file fields when these fields got HIGH values in source file.
Thanks