Application Development 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: 

Diff. bet TYPE-POOL & TYPE-POOLS

Former Member
0 Kudos

Hi,

Could anyone please tell me the difference b/w TYPE-POOL & TYPE-POOLS statements with some examples

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

In my system, the TYPE-POOL statement is not allowed and will give a syntax error. It forces you to use the TYPE-POOLS statement, do you have an example of where you see the TYPE-POOL statement?

Regards,

Rich Heilman

former_member188685
Active Contributor
0 Kudos

WHere did you used TYPE-POOL.

Is it allowed..

regards

vijay

0 Kudos

Oh, I think I see what you are talking about. In a report program write this.




report zrich_0002.

type-pools slis.

Now double click on the SLIS. This takes you to the type pool. This first statement in the code is TYPE-POOL. This is just how you define the start of the type pool. Sort of like REPORT ZRICH_0002 or FUNCTION ztest. When developing a type pool you will begin the code by saying TYPE-POOL ZTEST. Then, to use the type pool in your program, you will say TYPE-POOLS ZTEST.

Make sense?

Welcome to SDN. Please reward points for helpful answers and mark your post as solved if answered completely. Thanks.

Regards,

Rich Heilman