On Thu, 7 Aug 2008 08:11:33 -0500, Norbert Friemel wrote:
>
>>SOURCELINE() supported in compiled Rexx?
>
>It depends...
> http://publibz.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/H1981605/1.8.1.8?DT=20030825101721
>
Thanks.
There, I read:
#1.8.1.8 "IBM Compiler and Library for REXX on zSeries V1 R4 User's Guide and
Refer..
__________________________________________________________________________________
1.8.1.8 SOURCELINE Built-In Function
The full functions of the SOURCELINE function are available only if the
program is
compiled with the SLINE compiler option.
2. The string returned by SOURCELINE(n) from a compiled program contains
only the text
within the specified margins. The string returned from a program interpreted
with the
system product interpreter, however, contains the complete line.
Sigh. What a stupid restriction! If they go to the considerable effort
to provide an option to support SOURCELINE(), why not the small additional
effort to provide compatibility by storing the source line before it's
munged by the input filter?
If the user specifies MARGINS(1-*) (whatever syntax), is the behavior
identical to that of interpreted Rexx? Are line lengths preserved,
not padded to the right margin value?
If it was worth doing, it should have been worth doing right.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html