Skip to main content

 
IBM Power Systems software  >  IBM i  > Software  > 

Net.Data for i5/OS

  
Overview News Library Education Support

Writing to Stdout (Returning Data to the Browser)
Here are some things you need to know when writing to stdout from a program called by Net.Data. These tips only apply if you are running V3R2 or V3R7 of the OS/400 operating system. There are no restrictions on the data written to stdout if you are running V4R1 or a subsequent release of OS/400.

  • General
    • The size of the longest string that can be written to stdout is 254 bytes.
      In the above statement "longest string" means a string that contains no newline characters. In general, ensure that you have newline characters in any long string at intervals of less than 254 bytes.
    • Start user-defined function calls in the first column.
      When calling a function within a Net.Data macro that will result in an external program being called, and the program that is called generates output to stdout, ensure that the function call statement in the Net.Data macro starts in column 1.
  • Rexx
    • Pre-pad with 12 blanks when using SAY
      SAY allows you to write to stdout. However, when doing so ensure that you prepad the string to be written with 12 blanks. For example:
        SAY '            STARTOFDATA'
      

      The 12 blanks will be ignored.