Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Wrong Again (was: String Functions in MF
"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
 news:l9cml0t1f0ao5plaef6u0nn9if70la2td4@
4ax.com...
> On Wed, 29 Sep 2004 21:57:01 GMT, Robert Wagner
> <robert@wagner.net.yourmammaharvests> wrote:
<snip>
> I forgot to mention that 'my' pointer technique is in the 02 standard.
> The standard does not require BASED syntax, as you speculated here it
> would. It also allows SET ADDRESS OF (linkage section item) TO
> (pointer).

It is true that one may code SETT ADDRESS OF (linkage section item) TO (poin
ter)

HOWEVER, SR(18) of the SET statement (page 520) explicitly says,

"18) Data-name-1 shall be a based data item."

Therefore, this is QUITE incompatible with the current IBM and Micro Focus
syntax (and the undocumented and unsupported Fujitsu syntax)

--
Bill Klein
wmklein <at> ix.netcom.com



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
10-02-04 01:55 PM


Re: Wrong Again (was: String Functions in MF
On Wed, 29 Sep 2004 22:18:13 GMT, "William M. Klein"
<wmklein@nospam.netcom.com> wrote:

>"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
> news:l9cml0t1f0ao5plaef6u0nn9if70la2td4@
4ax.com... 
><snip> 
>
>It is true that one may code SET ADDRESS OF (linkage section item) TO (poin
ter)
>
>HOWEVER, SR(18) of the SET statement (page 520) explicitly says,
>
>"18) Data-name-1 shall be a based data item."
>
>Therefore, this is QUITE incompatible with the current IBM and Micro Focus
>syntax (and the undocumented and unsupported Fujitsu syntax)

It's not QUITE incompatible, it requires a minor change -- adding a
BASED clause to the linkage section item. Having done that, the BASED
pointer need never be referenced.


Report this thread to moderator Post Follow-up to this message
Old Post
Robert Wagner
10-02-04 01:55 PM


Re: Wrong Again (was: String Functions in MF
"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
 news:6geml0564aik6rjr3m79for7hf86mp6m27@
4ax.com...
> On Wed, 29 Sep 2004 22:18:13 GMT, "William M. Klein"
> <wmklein@nospam.netcom.com> wrote:
> 
>
> It's not QUITE incompatible, it requires a minor change -- adding a
> BASED clause to the linkage section item. Having done that, the BASED
> pointer need never be referenced.
>

So you admit you were WRONG when you said (see a few lines above)

"The standard does not require BASED syntax,  ..."


--
Bill Klein
wmklein <at> ix.netcom.com



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
10-02-04 01:55 PM


Re: Wrong Again (was: String Functions in MF
On Wed, 29 Sep 2004 22:50:17 GMT, "William M. Klein"
<wmklein@nospam.netcom.com> wrote:

>
>"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
> news:6geml0564aik6rjr3m79for7hf86mp6m27@
4ax.com... 
>
>So you admit you were WRONG when you said (see a few lines above)
>
>  "The standard does not require BASED syntax,  ..."

If it pleases you, I admit I was wrong. One must declare BASED syntax
and then can ignore it.

Report this thread to moderator Post Follow-up to this message
Old Post
Robert Wagner
10-02-04 01:55 PM


Re: Wrong Again (was: String Functions in MF
In article <jsmml05eoau2unj54ns9nmroiljjgjg739@4ax.com>,
Robert Wagner  <robert@wagner.net.yourmammaharvests> wrote:
>On Wed, 29 Sep 2004 22:50:17 GMT, "William M. Klein"
><wmklein@nospam.netcom.com> wrote:
> 
>
>If it pleases you, I admit I was wrong.

Mr Wagner, if you said 'A does not require B' and then later asserted that
(given the same aspect at the same time) 'A requires B' then, right or
wrong, you seem to have contradicted yourself.  This sort of thing has
been shrugged off by the likes of Whitman... but I am not sure how much
you wish to align your personality with that sort.

DD


Report this thread to moderator Post Follow-up to this message
Old Post
docdwarf@panix.com
10-02-04 01:55 PM


Re: Wrong Again (was: String Functions in MF
Robert,
Just so you know, there is one more difference (between the requirement for
the BASED phrase) between existing IBM and Micro Focus implementations and t
hat
required in the '02 Standard.

For IBM and Micro Focus, a Linkage Section item for which the SET ADDRESS OF
statement establishes addressability need not - but MAY appear in the Proced
ure
Division Using statement.  If it appears there but a SET ADDRESS statement i
s
used against it, it "changes" where that item is now located.

For the '02 Standard, there is an explicit rule that an item in the Procedur
e
Division Using statement may *NOT* have a BASED phrase.  Therefore, some
existing IBM and Micro Focus applications may fail to compile with a restric
ted
to '02 Standard COBOL compiler - even if BASED phrases are added.

From my personal experience, MOST Micro Focus and IBM applications using SET
ADDRESS OF to establish addressability to a Linkage Section item do NOT incl
ude
them in the Procedure Division header.  HOWEVER, I have also seen some that 
do
(for cases where a parameter is passed to a subprogram - and then that LS it
em
is "re-addressed" based on application logic)

--
Bill Klein
wmklein <at> ix.netcom.com
"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
 news:jsmml05eoau2unj54ns9nmroiljjgjg739@
4ax.com...
> On Wed, 29 Sep 2004 22:50:17 GMT, "William M. Klein"
> <wmklein@nospam.netcom.com> wrote:
> 
>
> If it pleases you, I admit I was wrong. One must declare BASED syntax
> and then can ignore it.



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
10-02-04 01:55 PM


Re: Wrong Again (was: String Functions in MF
On 29 Sep 2004 21:22:07 -0400, docdwarf@panix.com wrote:


>Mr Wagner, if you said 'A does not require B' and then later asserted that
>(given the same aspect at the same time) 'A requires B' then, right or
>wrong, you seem to have contradicted yourself.  This sort of thing has
>been shrugged off by the likes of Whitman... but I am not sure how much
>you wish to align your personality with that sort.

If foolish consistency is the hobgoblin of a small mind [Emerson],
then consistent small mindedness is the harbinger of idiocy.


Report this thread to moderator Post Follow-up to this message
Old Post
Robert Wagner
10-02-04 08:55 PM


Re: Wrong Again (was: String Functions in MF
And your difficulty in admitting your errors is what gets you the general
responses you receive in CLC.

--
Bill Klein
wmklein <at> ix.netcom.com
"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
 news:cmopl05er1g3qft7a1h4igelk42pd6tm3h@
4ax.com...
> On 29 Sep 2004 21:22:07 -0400, docdwarf@panix.com wrote:
>
> 
>
> If foolish consistency is the hobgoblin of a small mind [Emerson],
> then consistent small mindedness is the harbinger of idiocy.
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
10-02-04 08:55 PM


Re: Wrong Again (was: String Functions in MF
In article <cmopl05er1g3qft7a1h4igelk42pd6tm3h@4ax.com>,
Robert Wagner  <robert@wagner.net.yourmammaharvests> wrote:
>On 29 Sep 2004 21:22:07 -0400, docdwarf@panix.com wrote:
>
> 
>
> If foolish consistency is the hobgoblin of a small mind [Emerson],
>then consistent small mindedness is the harbinger of idiocy.

I am not sure what is intended by this, Mr Wagner... are you attemp[ting
to offer the Voice of Experience along the lines of 'ask the man who owns
one'?

DD


Report this thread to moderator Post Follow-up to this message
Old Post
docdwarf@panix.com
10-02-04 08:55 PM


Re: Wrong Again (was: String Functions in MF
Robert,
Just so you know, there is one more difference (between the requirement for
the BASED phrase) between existing IBM and Micro Focus implementations and t
hat
required in the '02 Standard.

For IBM and Micro Focus, a Linkage Section item for which the SET ADDRESS OF
statement establishes addressability need not - but MAY appear in the Proced
ure
Division Using statement.  If it appears there but a SET ADDRESS statement i
s
used against it, it "changes" where that item is now located.

For the '02 Standard, there is an explicit rule that an item in the Procedur
e
Division Using statement may *NOT* have a BASED phrase.  Therefore, some
existing IBM and Micro Focus applications may fail to compile with a restric
ted
to '02 Standard COBOL compiler - even if BASED phrases are added.

From my personal experience, MOST Micro Focus and IBM applications using SET
ADDRESS OF to establish addressability to a Linkage Section item do NOT incl
ude
them in the Procedure Division header.  HOWEVER, I have also seen some that 
do
(for cases where a parameter is passed to a subprogram - and then that LS it
em
is "re-addressed" based on application logic)

--
Bill Klein
wmklein <at> ix.netcom.com
"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
 news:jsmml05eoau2unj54ns9nmroiljjgjg739@
4ax.com...
> On Wed, 29 Sep 2004 22:50:17 GMT, "William M. Klein"
> <wmklein@nospam.netcom.com> wrote:
> 
>
> If it pleases you, I admit I was wrong. One must declare BASED syntax
> and then can ignore it.



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
10-02-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:49 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.