Version 1.5.0.9
Example 1:
When an ellipses (...) is used on a named variable/structure/prototype/procedure interface that is less than "15" characters.
BEFORE
d LOAD pr extproc('APDLTXM2')
d P1 likeds(UBSID)
d P2 like(pSUB)
d APDLT_M0...
d pr
AFTER
dcl-pr LOAD extproc('APDLTXM2');
P1 likeds(UBSID);
P2 like(pSUB);
APDLT_M0
end-pr;
dcl-pr * N
end-pr;
Example 2:
When an ellipses (...) is used on a named variable/structure/prototype/procedure interface that is more than "15" characters.
BEFORE
d LOAD pr extproc('APDLTXM2')
d P1 likeds(UBSID)
d P2 like(pSUB)
d LongNameExceeding15CharsToWrite...
d s 10a inz('hello')
AFTER
dcl-pr LOAD extproc('APDLTXM2')
likeds(UBSID);
P2 like(pSUB);
end-pr;
dcl-s LongNameExceeding15CharsToWrite
Char(10) inz('hello');
As another example of this, when a prototype with an ellipsis in the name follows another prototype declaration, the name is output, then the "end-pr" is output. This is then followed by the ellipsis prototype which is output with
*Nas the name. Also note, comments preceding the ellipsis prototype are indented and included in the preceding prototype.(if you look closely, you will also notice some extra blank lines are inserted)
For example:
Current (wrong) output:
Expected output:
Also, keep in mind that a definiton may span multiple lines.
The following:
Should return: