Exforsys
+ Reply to Thread
Results 1 to 3 of 3

packed decimal to unpacked decimal

This is a discussion on packed decimal to unpacked decimal within the COBOL forums, part of the Programming Talk category; hello every one can any one help me out from this? mainframe flat file was transfering to datastage,while transfering file ...

  1. #1
    jagan403 is offline Junior Member Array
    Join Date
    Aug 2009
    Answers
    1

    packed decimal to unpacked decimal

    hello every one

    can any one help me out from this?

    mainframe flat file was transfering to datastage,while transfering file was in packed decimalformat but in end target the packed decmial format shouldnt come?
    this was the format in datastage we aree geeting--

    member_sub_amt
    0000000{
    0000045{
    0000198H
    0000203C
    0000098I
    0000203C
    0000098I
    0000265D

    i should not get this in endtarget for this wat i need to do....?
    {-->meaning
    h--->meaning
    thanks in advance


  2. #2
    eddie13 is offline Junior Member Array
    Join Date
    Jul 2007
    Answers
    8
    Quote Originally Posted by jagan403 View Post
    hello every one

    can any one help me out from this?

    mainframe flat file was transfering to datastage,while transfering file was in packed decimalformat but in end target the packed decmial format shouldnt come?
    this was the format in datastage we aree geeting--

    member_sub_amt
    0000000{
    0000045{
    0000198H
    0000203C
    0000098I
    0000203C
    0000098I
    0000265D

    i should not get this in endtarget for this wat i need to do....?
    {-->meaning
    h---> meaning
    thanks in advance
    You probably have an answer by now. Sorry but I haven't checked posted as much as I should. The meaning of "{" is a number that ends with positive zero and "}" is a number that ends with a negative zero... such as -10 which would be 000001}. Fields ending in "A" are numbers that end with a positive 1... B==2, C==3 ... J==9. Negative 1 is "K", L==-2, M==-3 etc. ?This packed format would be either PIC S9(7) or decimal equalivent... S9(5)V9(2). To upload files, I always unpacked first and then upload that file. The unpacked file will have 4 additional characters. The packed field occupies 4 bytes (characters) and the unpacked field will occupy 8 bytes. If you want to convert the zone signed characters, use output format PIC 9999999- for trailing sign. Also notice that mainframe "a" and "A" have different values.
    hope this helps.


  3. #3
    lenting is offline Junior Member Array
    Join Date
    Jan 2012
    Answers
    3
    Hey you can search case study questions online. There are few sites which are very useful.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...