midrange.com code scratchpad
Name:
Member NMS_Protos in sourcefile, TFSCOPYSRC
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
05/30/2012 02:19:29 pm
IP:
Logged
Description:
Test code for passing data structure to a submitted job.
Code:
  1.  
  2.       /if defined(test_nms)
  3.      d TESTSTUFF2...
  4.      d                 PR                  extproc('TESTSTUFF2')
  5.      d  in_ds                              likeds(NMS_OrderDetails)
  6.      d                                     const
  7.       /endif
  8.  
  9.       * Data structure common to multiple NMS provisioning modules
  10.       * MAINTENANCE NOTE:  This DS is passed through a SBMJOB command, and for
  11.       * that the EndOfDSmarker field must be the last subfield so that any
  12.       * trailing blanks are preserved for the receiving program.  Ensure the 
  13.       * program passing the data structure has character fields adequately 
  14.       * sized for the conversion to hex.
  15.       /if defined(NMS_Details_DS)
  16.      d NMS_OrderDetails...
  17.      d                 ds                  qualified
  18.      d  Order                         6a
  19.      d  OrderType                     2a
  20.      D  Phone#                       10S 0 inz(0)
  21.      d   PhoneExch                    6s 0  overlay(Phone# : 1)
  22.      d   PhoneLine                    4s 0  overlay(Phone# : *next)
  23.      d  OldPh#                       10s 0 inz(0)
  24.      d   OldExch                      6s 0  overlay(OldPh# : 1)
  25.      d   OldLine                      4s 0  overlay(OldPh# : *next)
  26.      d  CableType                     6    inz
  27.      d  PriorCableType...
  28.      d                                6    inz
  29.      d  COE                          11a   inz
  30.      d  testvarying1                 30a   inz varying
  31.      d  testON                         n   inz
  32.      d  testP4point3                  4p 3 inz
  33.      d  testvarying2                 20a   inz varying
  34.      d  testTrailingBlanks...
  35.      d                                5a   inz('MK   ')
  36.      d  EndOfDSmarker                 1a   inz('x')
  37.       /endif
  38.  
© 2004-2019 by midrange.com generated in 0.005s valid xhtml & css