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

Usage of pre-processor statement in procedure name?


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

New User


Joined: 15 Nov 2019
Posts: 7
Location: India

PostPosted: Thu Nov 28, 2019 4:08 pm
Reply with quote

%dcl FindDCB entry;
%FindDCB: Proc(FilNavn) returns(char);
dcl FilNavn Char;
dcl String Char;
String = 'call Call_Ewbdsnm(' !! FilNavn !! ');';
Return(String);
%end;

Can someone explain how the above code will be processed? How Pre-processor statement for PROC be processed?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1284
Location: Vilnius, Lithuania

PostPosted: Thu Nov 28, 2019 6:47 pm
Reply with quote

Have you bothered to look at the rest of the program?

Or RTFM?

Or just tried a small program like:

Code:
wtf: proc options(main) reorder;
%dcl FindDCB entry;
%FindDCB: Proc(FilNavn) returns(char);
dcl FilNavn Char;
dcl String Char;
String = 'call Call_Ewbdsnm(' !! FilNavn !! ');';
Return(String);
%end;

finddcb(my_dcb);
end wtf;


and looked at the listing?
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 Invoke stored procedure via batch JCL. DB2 2
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
Search our Forums:

Back to Top