SQL/MX Programming Manual for Java
Sample Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
C-24
Translating the Program
Translating the Program
At an OSS prompt, enter this command to translate the SQLJ source file by running
the SQLJ translator:
java sqlj.tools.Sqlj -createMDF StreamTimeout.sqlj
Running the Program
At an OSS prompt, enter this command to run the SQLJ program:
java StreamTimeout
Results of Running the Program
This output is returned to the screen when you run the SQLJ program:
java StreamParcels
Destination = 200
Origin = 100
Sequence number = 1
Destination = 233
Origin = 104
Sequence number = 6
Destination = 261
Origin = 103
Sequence number = 12
...
Destination = 201
Origin = 101
Sequence number = 3
Destination = 235
Origin = 102
Sequence number = 7
...