CALL Rxqueue 'set', 'SESSION'
DO WHILE ( Queued() >< 0 )
inline1 = LineIn( 'QUEUE:' )
Qsess = RXQUEUE('set', Qnew)
Say 'Qsess='Qsess
QUEUE inline1
SAY inline1
trash = RXQUEUE('set', Qsess)
Say 'trash='trash
END
Qsess = RXQUEUE('set', Qsess)
'cmd /c test8 'Qnew' > test9.txt'
trash = RXQUEUE('set', Qnew)
trash = RXQUEUE('set', Qsess)
'RXQUEUE 'Qnew' /CLEAR'
'RXQUEUE 'Qsess' /CLEAR'
trash = RXQUEUE('delete', Qnew)
'dir test9.txt'
EXIT
/*=== Error: Trap ERROR, FAILURE etc. conditions ===*/
Error:
/*=== Returns szCondition or Exits ===*/
call lineout 'STDERR:', 'At Error'
parse source . . szThisCmd
call lineout 'STDERR:', condition('C') 'signaled at' SIGL 'of' szThisCmd
drop szThisCmd
call lineout 'STDERR:', 'Source =' sourceline(SIGL)
call SysSleep 2
if condition('I') = 'CALL' then do
szCondition = condition('C')
call lineout 'STDERR:', 'Returning'
return
end
else do
trace '?A'
call lineout 'STDERR:', 'Exiting'
exit 255
end
/* end Error */
return
/* ReXX */
/* file test8.cmd */
signal on ERROR
signal on FAILURE name Error
signal on HALT name Error
signal on NOTREADY name Error
signal on NOVALUE name Error
signal on SYNTAX name Error
PARSE UPPER ARG Qgiven
call lineout 'STDERR:', 'QGiven='Qgiven
Qgiven = strip(Qgiven, 'B')
call lineout 'STDERR:', 'QGiven='Qgiven
Qsess = RXQUEUE( 'Get')
call lineout 'STDERR:', 'Qsess='Qsess
Qtest = RXQUEUE('Set', Qgiven)
call lineout 'STDERR:', 'Qtest='Qtest
Qtest = RXQUEUE('Get')
call lineout 'STDERR:', 'Qtest='Qtest
DO WHILE ( Queued() >< 0 )
inline1 = LineIn('QUEUE:')
call lineout 'STDOUT:', inline1
/*
SAY inline1
*/
END
trash = RXQUEUE('set', Qsess)
EXIT
/*=== Error: Trap ERROR, FAILURE etc. conditions ===*/
Error:
/*=== Returns szCondition or Exits ===*/
call lineout 'STDERR:', 'At Error'
parse source . . szThisCmd
call lineout 'STDERR:', condition('C') 'signaled at' SIGL 'of' szThisCmd
drop szThisCmd
call lineout 'STDERR:', 'Source =' sourceline(SIGL)
call SysSleep 2
if condition('I') = 'CALL' then do
szCondition = condition('C')
call lineout 'STDERR:', 'Returning'
return
end
else do
trace '?A'
call lineout 'STDERR:', 'Exiting'
exit 255
end
/* end Error */
return
=====================================================
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".
=====================================================
<< Previous 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.