Code Comments
Programming Forum and web based access to our favorite programming groups.When a program is compiled by Micro Focus with the OSVS option on, reference modification is accepted in most places but not in conditionals. Valid: MOVE A(1:1) TO B Invalid: IF A(1:1) = '1' ... Where did IBM get this notion? Is it simply a bug?
Post Follow-up to this messageIn article <n51aq0146huh06ajafv639cmjmkh8dl76s@4ax.com>, Robert Wagner <spamblocker-robert@wagner.net> wrote: > When a program is compiled by Micro Focus with the OSVS option on, > reference modification is accepted in most places but not in > conditionals. > > Valid: MOVE A(1:1) TO B > > Invalid: IF A(1:1) = '1' ... > > Where did IBM get this notion? Is it simply a bug? I'm not sure what the OSVS option is supposed to emulate -- but that notation in conditionals works in the recently shipping (last 10 years or so) compilers.
Post Follow-up to this messageThanks for the research. The option I used was $SET OSVS, not FLAG(OSVS). The compiler does what the manual says, here: http://supportline.microfocus.com/s...r /> .htm#0002 On Fri, 26 Nov 2004 00:17:00 GMT, "William M. Klein" <wmklein@nospam.netcom.com> wrote: >The OSVS compiler directive is a "dialect" directive that ONLY (or very >close to only) impacts reserverd words . > >To determine if SYNTAX is correct for emulating IBM's OS/VS COBOL compiler , >use the FLAG(OSVS) directive. > >"Robert Wagner" <spamblocker-robert@wagner.net> wrote in message > news:n51aq0146huh06ajafv639cmjmkh8dl76s@ 4ax.com... >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.