fork download
  1.  
  2.  
  3. sample: package;
  4. sample: proc options( main );
  5. dcl sum fixed bin(31);
  6. sum = addtwo( 3 );
  7. put skip list ( 'sum = ‘ || sum );
  8. end;
  9.  
  10. addtwo: proc( limit )
  11. returns( byvalue fixed bin(31) );
  12.  
  13. dcl limit fixed bin(31) byvalue;
  14. dcl sum fixed bin(31);
  15. sum = 0;
  16.  
  17. return( sum );
  18. end;
  19.  
  20. end;
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty