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
Warnings : 1

Senior Member


Joined: 07 Feb 2009
Posts: 1263
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 process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts Stored procedure cpu utilization DB2 1
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
No new posts Usage of BINSEARCH PL/I PL/I & Assembler 1
No new posts Is there a way to determine Clist usa... CLIST & REXX 10
Search our Forums:

Back to Top