Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
--https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/sqlp/rbafyjsonconcepts.htm
drop table barry.docs;
create table barry.docs (
did integer not null GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1),
dcontent blob,
PRIMARY KEY (did)
);
ctl-opt dftactgrp(*no);
Dcl-Ds PRODUCTSP EXTNAME('PRODUCTSP');
End-Ds;
dcl-s start timestamp;
dcl-s end timestamp;
dcl-s data varchar(50);
start = %timestamp();
class expRange
{
public int _low;
public int _high;
public expRange(int low, int high)
{
_low = low;
_high = high;
}

php2rpg

Guide showing you PHP and RPG differences

  • RPG is strongly typed.
  • RPG indexes start at 1, where PHP starts at 0.
  • Variables in PHP start with a Dollar sign. ($)

Typing