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

top include

naveen_inuganti2
Active Contributor
0 Likes
462

hi all..

iam having two variables in my modulepool program... like var1 and var2...declared separately in top include with type c and size 20 (same)....

here in my program some times i hav to give.....

var1 = var2... in some modules......

but i dont want to write above statement where ever i want.....i need global declaration.....if i write that statement in top include it was showing error...that staement is not accessble....

so....where i hav to declare it to applicable for entire program......

Thank you,

naveen.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
434

hi,

Create a global perform. Put the required data in it and use this perform where ever required ...

Regards,

Santosh

2 REPLIES 2
Read only

Former Member
0 Likes
435

hi,

Create a global perform. Put the required data in it and use this perform where ever required ...

Regards,

Santosh

Read only

Former Member
0 Likes
434

hii,

use a subroutine..... pass the vales as its parameters and you can use it anywhere you like..

its my point of veiw..if helpful reawrd..

thanks....