Topic
  • 3 replies
  • Latest Post - ‏2013-01-03T18:41:23Z by JasonJava
JasonJava
JasonJava
19 Posts

Pinned topic CopyBook representation of NUMBER

‏2012-12-31T18:32:08Z |
I tried to import a CopyBook but some of the number field like below did not show up correctly.
The min size was set to 0 and max size was set to 1.

I am new in WTX (Version: 8.3.0.3) and wondering what is the correct setting for a value like this.

For example,

10 AMOUNT PIC Z,ZZZ,ZZ9.9999.

I have used the following but would like to ask the expert for a second opinion. Appreciate any help.

Item Subclass: NUMBER
->Presentation: Decimal
Size
->min: 11
->max: 11
Separator: Yes
-> Format: #[,]###.##
Pad: Yes -> Value: <SP>
Places
->Decimal Min: 4
->Decimal Max: 4
->Whole Min: 1
->Whole Max:
Updated on 2013-01-03T18:41:23Z at 2013-01-03T18:41:23Z by JasonJava
  • JasonJava
    JasonJava
    19 Posts

    Re: CopyBook representation of NUMBER

    ‏2012-12-31T18:54:18Z  
    Oops, I think the Whole Min and Max should also be 4

    ->Whole Min: 4
    ->Whole Max: 4
  • SystemAdmin
    SystemAdmin
    6184 Posts

    Re: CopyBook representation of NUMBER

    ‏2013-01-03T18:12:25Z  
    • JasonJava
    • ‏2012-12-31T18:54:18Z
    Oops, I think the Whole Min and Max should also be 4

    ->Whole Min: 4
    ->Whole Max: 4
    
    ->Whole Min: 4 ->Whole Max: 4
    


    I believe what you may want is:
    ->Whole Min: 1 -> The "9" to the left of the decimal point.
    ->Whole Max: 7 -> The "9" plus the 6 "Z"s

    I almost never complete the "Whole" Places values so I'm no expert. I don't see too many requirements including formatting of whole digits. In a COBOL copybook formatted data, it's not like you are going to get more than 7 whole digits. Since you're padding with spaces, I don't see what purpose the Whole Places values serve.
  • JasonJava
    JasonJava
    19 Posts

    Re: CopyBook representation of NUMBER

    ‏2013-01-03T18:41:23Z  
    <pre class="jive-pre"> ->Whole Min: 4 ->Whole Max: 4 </pre>

    I believe what you may want is:
    ->Whole Min: 1 -> The "9" to the left of the decimal point.
    ->Whole Max: 7 -> The "9" plus the 6 "Z"s

    I almost never complete the "Whole" Places values so I'm no expert. I don't see too many requirements including formatting of whole digits. In a COBOL copybook formatted data, it's not like you are going to get more than 7 whole digits. Since you're padding with spaces, I don't see what purpose the Whole Places values serve.
    Thanks for the response. I think you are right.

    We are new to WTX and DataPower MQ CICS communication. The copybook is what mainframe person provided.