*/ 
CALL Rxqueue 'set', 'SESSION' 
DO WHILE ( Queued() >< 0 ) 
  inline1 = LineIn( 'QUEUE:' ) 
  Qold = RXQUEUE('set', Qnew) 
  /* 
  QUEUE 'Test.....' 
  QUEUE inline1 
  */ 
  call LineOut 'QUEUE:', inline1 
  trash = RXQUEUE('set', Qold) 
END 
/* 
Qold = RXQUEUE('set', Qnew) 
*/ 
Qold = RXQUEUE('set', 'NOISSES') 
SAY 'Qnew is 'Qnew 
SAY 'Qold is 'Qold 
'pause  &  call test8.cmd  'Qnew'  ' 
/* 
'start /c  test8  'Qnew'  >  test9.txt ' 
trash = RXQUEUE('delete', Qnew) 
*/ 
call  RXQUEUE 'delete', Qnew 
call  RXQUEUE 'delete', Qold 
'dir test9.txt' 
EXIT 
############################################################### 
/*      ReXX            */ 
/*     test8.cmd            */ 
PARSE UPPER ARG Qgiven 
/* 
SAY 'Given:  'Qgiven 
Qold = RXQUEUE('Create', Qgiven) 
SAY Qold 
SAY Qold 
Qold = RXQUEUE('Set', Qgiven ) 
Qold = RXQUEUE('Set', 'NOISSES' ) 
*/ 
SAY 'Given:  'Qgiven 
Qtest =   RXQUEUE('Get') 
SAY 'Active:  'Qtest 
Qold = RXQUEUE('Set', Qgiven ) 
/*                    #########  This  seems to be the sticking point: 
                                 a variable here doesn't seem to work, 
                                 but if I hard code 'NOISSES' in here, 
                                 the set of programs seem to work: 
Qold = RXQUEUE('Set', 'NOISSES' ) 
Steve L. (or anyone else lurking out there) - 
any idea why this has to be hard coded? 
Is there some other error elsewhere I'm missing? 
I tried putting 'INTERPRET' infront of this, with the idea 
that maybe some subtle indirection was getting missed, but 
an 'incorrect function call' error still happens. 
Is it possible that this is something to prevent queue misdirections, 
that they have to be hard coded? 
*/ 
Qtest =   RXQUEUE('Get') 
SAY 'Active:  'Qtest 
SAY  'Queued:   'Queued() 
'pause' 
DO WHILE ( Queued() >< 0 ) 
  inline1 = LineIn( 'QUEUE:' ) 
  call lineout 'STDOUT:', inline1 
  /* 
  SAY inline1 
  */ 
END 
call RXQUEUE 'delete', Value(Qgiven) 
call RXQUEUE 'set', Qold 
EXIT 
############################################################### 
Regards, 
Dallas E. Legan II 
(562) 862 - 4854 ext. '*' 
L 
E 
G 
A 
N 
@ 
A 
C 
M 
. 
O 
R 
G 
===================================================== 
To unsubscribe from this list, send an email message 
to "steward@scoug.com". In the body of the message, 
put the command "unsubscribe scoug-programming". 
For problems, contact the list owner at 
"rollin@scoug.com". 
===================================================== 
 >> Next Message >>
Return to [ 13 | 
November | 
1998 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA  92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group.  ALL RIGHTS 
RESERVED. 
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International 
Business Machines Corporation.
All other trademarks remain the property of their respective owners.