home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
remcmd.zip
/
REMCMDC2.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-05-10
|
1KB
|
45 lines
/* Rexx */
Signal On Syntax
Parse Arg pq
/* Route incoming data from APPC into a PmPrintf window */
appcrc=Appc('Receive_Allocate','REMCMDC2','Inf.')
If appcrc = 0 Then
Do
tpid = inf.0
convid = inf.1
incoming_user = inf.4
End
Else
Do
call rxpmprintf pq,'Receive_Allocate failed with rc =' xlatrxap(appcrc)
Exit
End
appcrc = Appc('Receive_Wait', tpid, convid, 'Mapped', 'Inf.', 10000)
If appcrc <> 0 Then
Do
call rxpmprintf pq,'Receive_Wait failed with rc='xlatrxap(appcrc)'.'
If appcrc = '0E00'x Then
call rxpmprintf pq,'(Security check failed at' partlu')'
Call Appc 'Tp_Ended', tpid
Exit
End
Do While appcrc = 0 & inf.0 <> 1
inf.2 = Cryption(inf.2)
call rxpmprintf pq,inf.2
appcrc = Appc('Receive_Wait', tpid, convid, 'Mapped', 'Inf.', 10000)
End
Return
Cryption:
Return BitXor(Arg(1),Copies('ff'x,Length(Arg(1))))
Syntax:
Call rxpmprintf pq,ErrorText(rc)'0d0a'x||sourceline(sigl),'Rexx Syntax Error at line' sigl
Exit