Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

no-grouping

Former Member
0 Likes
5,239

write it_i_ppmlev-dplots to it_display-dplots no-grouping.

what does no-grouping means..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,565

Hi,

This addition suppresses the thousands separator in the output of data objects of data types i or p. In all other data types, the addition is ignored.

For Example :

11,00,000 it will displays like 1100000.

Thanks.

8 REPLIES 8
Read only

Former Member
0 Likes
2,565

OMG why dont you goto yourr statement and press F1???

all what you want to know is mentioned there and its only one sentence!

the seperators of type i and p will be ignored.

Read only

former_member188827
Active Contributor
0 Likes
2,565

This addition suppresses the thousands separator in the output of data objects of data types i or p. In all other data types, the addition is ignored.

Read only

Former Member
0 Likes
2,566

Hi,

This addition suppresses the thousands separator in the output of data objects of data types i or p. In all other data types, the addition is ignored.

For Example :

11,00,000 it will displays like 1100000.

Thanks.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,565

Look at WRITE online help.

<i><b>Option </b>

... NO GROUPING

<b>Effect </b>

If f has the type I or P, the thousand separators are omitted. </i>

Regards

Read only

Former Member
0 Likes
2,565

Hi,

<b>No-Grouping Clause</b>

If your variable you are writing to is of type I or P, the separators are omitted while writing the value.

Thanks,

Lalit Kabra

Read only

Former Member
0 Likes
2,565

thats exactly what i like, too lazy to press F1 and asking in da forum, and then even beeing too lazy to reward points.

actually that was my last answer to a question from you.

Read only

Former Member
0 Likes
2,565

NO-GROUPING is generally used along with the "WRITE" statement to format the output.

generally the 'NO-GROUPING' clause which does not include the delimiters used to separate thousands, hundred thousands and so for

Please award points if found usefull.

Cheers,

Chaitanya.

Read only

former_member386202
Active Contributor
0 Likes
2,565

Hi,

The output for the WRITE statement is "1234,57".

DATA pack TYPE p LENGTH 8 DECIMALS 4 VALUE '1234.5678'.

WRITE pack NO-GROUPING DECIMALS 2.

Addition 10

... ROUND scale

This addition cannot be used together with the addition TIME ZONE.

Effect

If dobj has the data type p, this addition multiplies the value of the data object, before output, by 10 to the power of scale. In all other data types, the addition is ignored. For scale, a data object of type i is expected that contains the value of the required scale.

If the value of scale is greater than 0 and the addition DECIMALS is not specified, the interim result is rounded to the number of decimal places defined in the data type. If the addition DECIMALS is specified, it is rounded to the number of decimal places specified in dec and these are then output.

If the addition ROUND is used with the length specification * or ** after AT, it is used first and the output length is determined from the result.

If the addition CURRENCY is specified, this is used, before multiplication, for the content of dobj. If the addition DECIMALS is not specified, the number of decimal places specified through cur is used for rounding off and for the output. If the addition DECIMALS is specified, the value in dec is used.

Example

The output of the WRITE statement is "123456,7800".

DATA pack TYPE p VALUE '12345678'.

WRITE pack NO-GROUPING ROUND 2 DECIMALS 4.

Regards,

Prashant