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: 18.104.22.168) and wondering what is the correct setting for a value like this.
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
-> Format: #[,]###.##
Pad: Yes -> Value: <SP>
->Decimal Min: 4
->Decimal Max: 4
->Whole Min: 1
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
3 replies Latest Post - 2013-01-03T18:41:23Z by JasonJava
Pinned topic CopyBook representation of NUMBER
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-03T18:41:23Z at 2013-01-03T18:41:23Z by JasonJava
SystemAdmin 110000D4XK6184 PostsACCEPTED ANSWER
Re: CopyBook representation of NUMBER2013-01-03T18:12:25Z in response to JasonJava
->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.