MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PL/I ->С: Using "FETCH .. ; CALL ... ; WAI

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
bnm1014
Beginner


Joined: 16 Sep 2004
Posts: 6
Topics: 3

PostPosted: Mon Sep 27, 2004 9:21 am    Post subject: PL/I ->С: Using "FETCH .. ; CALL ... ; WAI Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Sep 27, 2004 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue Sep 28, 2004 11:55 am    Post subject: Reply with quote

Are you doing multi-tasking in PL/I by proxy? Confused 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group