Submitted Questions

  • PIC clause to hold decimal values

    I have a file with 2 fields say 1st field is a indicator.2nd field is amount field.It has the values A,B,C,D.Suppose if the indicator is A,i want to move 123.4when B move 12.34when c move 1.234when d move 1234my question is what pic clause(only one op field variable) should be used to hold all the 4 types of variables.

    Neelesh Baghel

    • Oct 12th, 2011


    Declared variables as

    D
    01 PIC 9(4)v9(3).

    neelesh baghel

    • Oct 12th, 2011

    We can use picture clause like bellow mention

    01 PIC 9(3)v9(3)

    so u can move all given value on this