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

Difference between Define and Perform

Former Member
0 Likes
642

Hi all!

Is there a difference between macros and perform? assuming that the routine will not return any values...

For example, I want to concatenate 3 fields into a single field on another table:

1)

DEFINE add_line.

concatenate &1 &2 into tab2-field1.

append tab2.

END-OF-DEFINITION.

2)

PERFORM add_line USING text1 text2.

concatenate text1 text2 into tab2-field1.

append tab2.

ENDPERFORM.

Which one would be better to use?

Thanx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
584

well you cannot debug makros, so try to avoid them where possible

3 REPLIES 3
Read only

Former Member
0 Likes
585

well you cannot debug makros, so try to avoid them where possible

Read only

Former Member
0 Likes
584

hi,

perform is more useful for the most of the cases.

venkat.

Read only

Former Member
0 Likes
584

Hi,

Go for PERFORM statement, we can not debug the Macros for checking values in debug mode.

Regards,

Sunil