dbTalk Databases Forums  

DATA statement

comp.databases.pick comp.databases.pick


Discuss DATA statement in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian Bond
 
Posts: n/a

Default DATA statement - 03-08-2006 , 01:09 PM






I seem to vaguely recall that there a method in D3 to determine if data is
queued up from a DATA statement. I have been unable to find any reference
to it either in the D3 documentation or on-line.

I am not referring to the use of SYSTEM(14).

Needless to say, whatever information anyone in CDP may be able to provide
would be welcome.

thanks




Reply With Quote
  #2  
Old   
dale_benedict@flightcraft.ca
 
Posts: n/a

Default Re: DATA statement - 03-08-2006 , 01:24 PM






system(10)

It's not real clear, is it? The documentation has more to do with the
stacking of data from a proc.

hth

Dale


Reply With Quote
  #3  
Old   
Brian Bond
 
Posts: n/a

Default Re: DATA statement - 03-08-2006 , 01:42 PM



"Not real clear" is an understatement. Thanks.


<dale_benedict (AT) flightcraft (DOT) ca> wrote

Quote:
system(10)

It's not real clear, is it? The documentation has more to do with the
stacking of data from a proc.

hth

Dale




Reply With Quote
  #4  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: DATA statement - 03-08-2006 , 07:08 PM



In D3, not sure about others:

DATA "Y"
DATA "Y"
DATA "Y"
DATA "N"
DATA "N"
DATA "N"
EXECUTE "FILE-SAVE"


"Brian Bond" <brian (AT) XYZXYZXYZXYZbonanzapress (DOT) com> wrote

Quote:
I seem to vaguely recall that there a method in D3 to determine if data is
queued up from a DATA statement. I have been unable to find any reference
to it either in the D3 documentation or on-line.

I am not referring to the use of SYSTEM(14).

Needless to say, whatever information anyone in CDP may be able to provide
would be welcome.

thanks






Reply With Quote
  #5  
Old   
Mark Brown
 
Posts: n/a

Default Re: DATA statement - 03-08-2006 , 10:12 PM



System(10) is a boolean. 1 if there is data in the queue and 0 if not.

I use it like:

if not(system(10)) then "Print Enter User ID: ":
input userID:

that way, if there is no data stacked, prompt for the data. If there IS
data in the queue, don't bother asking for it, just take it.

It would probably make more sense if the value was 0 if nothing queued and >
0 for the actual number of elements queued. But the code is a simple: set
a register, increment it one byte, if you're not on a segment mark, there
must be data.


Mark Brown


<dale_benedict (AT) flightcraft (DOT) ca> wrote

Quote:
system(10)

It's not real clear, is it? The documentation has more to do with the
stacking of data from a proc.

hth

Dale




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.