View previous topic :: View next topic |
Author |
Message |
bnm1014 Beginner
Joined: 16 Sep 2004 Posts: 6 Topics: 3
|
Posted: Mon Sep 27, 2004 9:21 am Post subject: PL/I ->С: Using "FETCH .. ; CALL ... ; WAI |
|
|
There is Pl/I code:
/* Attach module */
Call op06(...);
If Result ^= 'OK' Then Do;
Continue = No;
...
End;
Else Do;
Call op07(....); /* Wait for completion */
Call op066(...); /* Detach module */
If Code = 0 Then SRcf = Good;
Else SRcf = Bad;
End;
where
Dcl op06 External Entry Options(Asm Inter Retcode); /* Attach */
Dcl op066 External Entry Options(Asm Inter Retcode); /* Detach */
Dcl op07 External Entry Options(Asm Inter Retcode); /* Wait ecb */
Is it possible to do this in C?
Thanx in advance. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Sep 27, 2004 10:38 am Post subject: |
|
|
bnm1014,
It would be really helpful if you let us know as to what you are trying to accomplish. There are very few people who work on the 2 languages mentioned here. Most of them have one language as a primary skill. so it is difficult for us to intrepret the requirement. If you let us know as to what you are trying to accomplish, then may be we can help you.
Thanks,
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Tue Sep 28, 2004 11:55 am Post subject: |
|
|
Are you doing multi-tasking in PL/I by proxy? ATTACH is also possible in PL/I. See TASK, ATTACH in PL/I. Your ASM external entries seem to be doing ATTACH, DELETE(?) macros themselves
I do not know, how multi-tasking can be implemented in C. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
|
|