RPGIV @ Work

A unique site for RPG and System i Lovers

Welcome!

Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

%ALLOC - Allocate Storage Print E-mail
User Rating: / 0
PoorBest 
Written by Chamara Withanachchi   
%ALLOC(num)

%ALLOC returns a pointer to newly allocated heap storage of the length specified. The newly allocated storage is uninitialized.


The parameter must be a non-float numeric value with zero decimal places. The length specified must be between 1 and 16776704.


  /FREE
   // Allocate an area of 200 bytes
   pointer = %ALLOC(200);
 /END-FREE
<Previous   Next>