Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 998
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us