IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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: 1226
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 All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts DB2 group member usage DB2 0
This topic is locked: you cannot edit posts or make replies. Splice JCL into one record for DD sta... SYNCSORT 2
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts Any limit on usage of cursors ? DB2 1
No new posts CALL statement in COBOL for VSE COBOL Programming 3

Back to Top