IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Clarify this statement in PL1 program


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashokakash

New User


Joined: 15 Nov 2006
Posts: 21
Location: Chennai

PostPosted: Thu Jul 31, 2008 7:27 pm
Reply with quote

I have seen a statement in PL1 program that is given below

#IMS (ETAPD51,1,3,(TPPCBP,WDBDPJ01P,IMSDGVB0P,IMSDGFB1P));
#GMPDSTD(ETAPD51,(..<some X Y Z parameters here>..));

Here ETAPD51 is an IMS program and the program where this statement is written is also an IMS program. Can anybody explain what does this statement do?

I never have come across such code in my experience...

Thanks
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Jul 31, 2008 8:18 pm
Reply with quote

Quote:
I never have come across such code in my experience...


Nor have I. I would think that the #IMS and #GMPDSTD are user-written MACROs to invoke the functions required. What does a compile listing show?

Regards,
Garry.
Back to top
View user's profile Send private message
cheryala

New User


Joined: 20 Mar 2006
Posts: 46

PostPosted: Wed Aug 06, 2008 12:54 pm
Reply with quote

it is quite possible that, there might be a precompile step which will convert these statements into equivalent PLI statements. check the compile listing. You might find the PLI equivalent lines which are undstandable to PLI compiler.
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Wed Aug 06, 2008 1:06 pm
Reply with quote

I suppose pre-processor statements in PL1 start with %. But anyway, as Cheryala suggested, you can see the compile listing for exact conversion.
Back to top
View user's profile Send private message
cheryala

New User


Joined: 20 Mar 2006
Posts: 46

PostPosted: Wed Aug 06, 2008 11:29 pm
Reply with quote

Quote:
I suppose pre-processor statements in PL1 start with %


Yes..pre-processor statements will start with %. But what I exactly want to say is , he must be (assumption only) using a version control tool (just like CHANGEMAN) to compile the source. And his firm might have customised it to their needs and included another precompiler step which will read the PLI source lines and interpretes the lines starting with # and replaces them with equivalent PLI statements and then the source generated after this pre-modification step, his actual PLI compile step follows.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top