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

REPORT

Former Member
0 Likes
714

We have 1 program ztest with E type and other one ztest1 with I type,

A-

Then how it will align in our program??????

Is it like-

Program ztest.

Include ztest1.

B-

If suppose we doing

*Program ztest.

Include ztest1.

Will it run properly or give syntax error?

C-

If suppose we doing

Program ztest.

*Include ztest1.

Will it run properly or give syntax error?

D-

If suppose we doing

  • Program ztest.

*Include ztest1.

Will it run properly or give syntax error?

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
676

A) yes, you first have your REPORT or PROGRAM statement, then have your includes.

b) If you comment out the program statement, you will get a syntax error, you always need a REPORT or PROGRAM statement in a report program.

c) You can comment out the include statement. if there are any calls to FORMs which are included in the include program, you will get a sytax error.

d) Again, you need the PROGRAM or REPORT statement.

Please remember to award points for all helpful answers to your questions. Thanks.

Regards,

Rich Heilman

Read only

0 Likes
676

thanx

Read only

former_member185931
Participant
0 Likes
676

A is right,

B will give error saying cannot execute include

C will not give error and run fine, but if you are using any perform or variable defined in ztest1 then it will give error.

D it will error it does not have program and report defined.

E is excutable and I is include.

Read only

0 Likes
676

thanx

Read only

0 Likes
676

Please remember to award points for helpful answers and mark this post as solved. Thanks.

Regards,

Rich Heilman