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

what is an "INC" in PL/I ?


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

New User


Joined: 07 Mar 2005
Posts: 9

PostPosted: Thu Mar 17, 2005 11:30 am
Reply with quote

HAI ALL

I SAW THIS CODE IN ONE MATERIAL .


DCL B(2,2);
I = 0;
PUT LIST (B(INC(I),INC(I));


WHAT IS THE MEANING OF INC??
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun Mar 20, 2005 1:56 am
Reply with quote

Good Joke. INC is a userdefined function used in all PL/I manuals by IBM.

Quote:
Assuming that the INC function increments the value of the argument passed to it and returns the updated value, the example that follows could
put out B(1,2) or B(2,1) depending on which subscript is evaluated first. You should not presume which subscript is evaluated first.

dcl B(2,2);
I = 0;
put list ( B( INC(I), INC(I) ) );
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 PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
No new posts Syncsort "Y2C" Function SYNCSORT 1
Search our Forums:

Back to Top