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

sub routine

Former Member
0 Likes
1,115

Hello friends,

I have a program and I have some Include programs and some perform statements in the main program.

The form routines for the perform statement in the main program are in the include programs.

I want to change the name of the perform statements.

I have tried to change the name of the perform statement in the main program and also changed the name of the form routines in the include program but it is giving me an error when i am activating it.

Is there a specific procedure that i have to follow.

Shejal shetty.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,034

Activate the INCLUDE program first, then activate the main program.

Regards,

Rich Heilman

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,035

Activate the INCLUDE program first, then activate the main program.

Regards,

Rich Heilman

Read only

0 Likes
1,034

I hav etried to active the Include first but I am having problems in Activating.

However let me explain in detail.

I have the main program - ZABC

I have 3 includes in ZABC.

Include Z1.

Include Z2.

Include Z3.

I have a perform statement in the main program and the same perform statement in 2 include programs and the form routine is in the third include program.

So what should my apporach be.

Shejal.

Read only

0 Likes
1,034

hi,

First activate the include having Form routines, then activate the includes and program.

Hope this helps.

Read only

0 Likes
1,034

Activate INCLUDE Z3 first, the the rest. In you main program, you may need to rearrange the sequence of the includes. For example, Z3 may need to come before Z1 and Z2, since you are calling(PERFORM) in the Z1 and Z2 includes.

Regards,

Rich Heilman

Read only

0 Likes
1,034

May be this will help.

First comment all the performs that you have called in the main program and the forms in the include program and activate all the programs (main and include). Then uncomment the forms in include program and activate the include. Later uncoment the calls (performs) in the main program and activate the main program.

Read only

0 Likes
1,034

Thanks all.

Let me tell how i did it and plese let me now is this right or wrong.

I changed all the perform and form statements in the main program as well as in the includes.

Looked for errors, I didnt find any errors but when I tried to Activate it it pops with an message box. Process errors or Activate anyway.

I clicked on activate anyway and i followed the same for all the includes. I activated the main program and the Includes.

And now when i am saving the code and activating it again it gets activated without any message. can this be done or it might give problems.

Shejal Shetty.

Read only

Former Member
0 Likes
1,034

Hi,

Did you try to activate from the main program?

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,034

Hi,

Please try to select all includes and the main program during activation (activate in the same time).

Regards,

Ferry Lianto