Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Clarify this statement in PL1 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
ashokakash

New User


Joined: 15 Nov 2006
Posts: 18
Location: Chennai

PostPosted: Thu Jul 31, 2008 7:27 pm    Post subject: Clarify this statement in PL1 program
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

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Jul 31, 2008 8:18 pm    Post subject:
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    Post subject: Reply to: Clarify this statement in PL1 program
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    Post subject:
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    Post subject: Reply to: Clarify this statement in PL1 program
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us