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: 

REPORT

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

thanx

former_member185931
Participant
0 Kudos

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.

0 Kudos

thanx

0 Kudos

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

Regards,

Rich Heilman