Exemplo n.º 1
0
    def __init__(self, **kw):
        Datamap.__init__(self, 'SMF Record Header',
    Int2('rlen'), # Record length        RDW header
    Uint1('seg'), # Segment control
    Uint1('seg2'), # Segment control 2 (unused)

    Bytes('flg',1,caption='System indicator'), # System indicator flags
    #q Asfxxx   equ    x'80'               subsystem id follows system id
    #q Asfstv   equ    x'40'               subtypes are valid
    #q Asfv4    equ    x'10'               mvs/sp v4 and above
    #q Asfv3    equ    x'08'               mvs/sp v3 and above
    #q Asfv2    equ    x'04'               mvs/sp v2 and above
    #q Asfvs2   equ    x'02'               vs2

    Uint1('rty',caption='SMF record type'),  # SMF record type

    Uint4('tme',ppfunc=dtime100,caption='Record creation time'), # Time since midnight
                                  # when record was moved into smf buffer in 1/100 sec

    Packed('dte',4,ppfunc=idate,caption='Record creation date'), # Date when record was
                                  # moved into smf buffer as 0cyydddf

    String('sid',4,caption='System identifier'), # smfprmxx sid
    # up to here if SMF record withtout subtypes

    String('ssi',4,caption='Subsystem identifier'),
    Uint2('sty',caption='Subtype'), # Subtype  ppfunc=Asbase.assty_str
    byteOrder=NETWORKBO,ebcdic=1,**kw)
Exemplo n.º 2
0
    def __init__(self, **kw):
        Datamap.__init__(
            self,
            'DRL',
            String('name', 8),
            Bytes('ttr', 3),
            Uint1(
                'flag'),  # Alias flag 0x80 and user half words (max 0x1f * 2)

            # --- if length in flag is 0x0f, ie. 30 bytes ISFP statistics follow
            Uint1('vv'),  # version (set by SCLM?)
            Uint1('mm'),  # modifications (range 0-99)
            Uint1('ind'),  # SCLM indicator
            Uint1('ss'),  # time last modified (second part)
            Packed('credate', 4),  # ibm creation date  0119001f = 20190101
            Packed('moddate', 4),  # date last modified 0099032f = 19990201
            Uint2('hhmm'),  # time last modified 0xhhmm
            Uint2('size2'),  # current number of lines, 655
            Uint2('init2'),  # initial number of lines
            Uint2('chgd2'),  # number of lines changed
            String('id', 8),  # user id of last modification

            # --- the following is only set if hw length in flag is 0x14 (=40 bytes)
            #     then ind & MIINDXSTA will be set
            Uint4('size'),  # current number of lines
            Uint4('init'),  # initial number of lines
            Uint4('chgd'),  # number of lines changed
            byteOrder=NETWORKBO,
            **kw)
Exemplo n.º 3
0
 def __init__(self, **kw):
     fields = (
         Uint4('error_code'),  # 1 CIS return code (0 = OK)
         Uint4(
             'totobj'),  # 1 Total number of objects returned in object list
         Uint4(
             'curobj'
         ),  # 1 Number of objects returned within current receive block
         Uint4('max_sc_len'),  # 1 longest SERVER-CLASS value in object list
         Uint4('max_sn_len'),  # 1 longest SERVER-NAME value in object list
         Uint4('max_sv_len'),  # 1 longest SERVICE value in object list
         Uint4('max_uid_len'),  # 1 longest USER-ID value in object list
         Uint4('max_tk_len'),  # 1 longest TOKEN value in object list
         Uint4('max_topic_len'),  # 4 longest TOPIC value in object list
         Uint4('requesttime', ppfunc=localtime_str
               ),  # 4 time that request was received by broker kernel
         Uint4('reserved', opt=T_NONE),  # 4
         String('etb_error_code',
                8),  # 5 Secondary error code from broker kernel
         String('etb_error_text',
                40),  # 5 Secondary error text from broker kernel
         Uint4('max_ppc_lib_len'),  # 6 longest RPC-LIB value in object list
         Uint4('max_ppc_pgm_len'),  # 6 longest RPC-PGM value in object list
     )
     Datamap.__init__(self, 'Cishdr', *fields, **kw)
Exemplo n.º 4
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU5C',
         String('fieldname', 2),  # Field name
         String('newformat', 1),  # New format
         String('filler1', 1),
         **kw)
Exemplo n.º 5
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBI',
         String('urbieye', 4),  # URBI eye-catcher 'URBI'
         Int4('urbilen'),  # Length of URBI + selection data + filler
         Int4('urbilenh'),  # Length of URBI proper (>= URBIL)
         Int4('urbilend'),  # Length of selection data (may be zero)
         String('urbirtok', 8),  # Request ID token (returned in response)
         String('urbirnam', 8),  # Destination name for response
         String('urbirt', 4,
                ppfunc=urbirt_str),  # Request type: STAT/INST/TRAN
         Uint2('urbidbid'),  # Database ID (INST request)
         Uint2('urbifnr'),  # File number (INST request)
         String('urbiinam', 8),  # Initial-state name (INST request)
         String('urbisnam',
                8),  # Subscription name or blank (STAT/TRAN req)
         String('urbidnam', 8),  # Destination name or blank (STAT/TRAN req)
         Uint4('urbiacod'),  # alpha field encoding in selection data
         Uint4('urbiwcod'),  # wide field encoding in selection data
         Bytes('urbiarc', 1),  # architecture flags for selection data
         String('urbires1', 3, opt=T_NONE),  # Reserved area1
         Uint4('urbitsnr'),  # Transaction seq.no. within
         #   subscription/destination (TRAN req)
         String('urbires2', 16, opt=T_NONE),  # Reserved area2
         # Optional selection data (INST request)
         **kw)
Exemplo n.º 6
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBE',
         String('urbeeye', 4),  # URBE eye-catcher 'URBE'
         Int4('urbelen'),  # Length of URBE
         String('urbesnam', 8),  # Subscription name
         Uint4('urbetsnr'),  # Transaction sequence number
         #   within subscription/destination
         String('filler1', 12, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 7
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU55',
         Uint2('assopfac'),  # Asso padding factor
         Uint2('datapfac'),  # Data padding factor
         Uint4('maxrecl'),  # Max. record length
         Uint2('maxui'),  # Max sec alloc Upper Index
         Uint2('maxni'),  # Max sec alloc Normal Index
         Uint2('maxds'),  # Max sec alloc Data storage
         String('pgmrefresh', 1),  # PGMREFRHESH='Y'/'N' #
         String('rplupdateonly', 1),  # RPLUPDATEONLY='Y'/'N' #
         **kw)
Exemplo n.º 8
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBU',
         String('urbueye', 4),  # URBU eye-catcher 'URBU'
         Int4('urbulen'),  # Length of URBU
         String('urbuvers', 2),  # Version indicator
         String('urbuname', 8),  # Extract name (ADARPE parameter NAME)
         Uint8('urbutime', opt=T_STCK),  # Time (STCK) of ADARPE execution
         String('urbudist', 22,
                opt=T_NONE),  # Local time displayable of ADARPE exec
         String('filler1', 32, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 9
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBD',
         String('urbdeye', 4),  # URBD eye-catcher 'URBD'
         Int4('urbdlen'),  # Length of URBD + related data + filler
         Int4('urbdlenh'),  # Length of URBD
         Int4('urbdlend'),  # Length of related data (at URBDDATA)
         Uint4('urbddsnr'),  # Data sequence number for record
         String('urbdtyp', 1, ppfunc=urbdtyp_str),  # Type of data
         String('filler1', 11, opt=T_NONE),  # Reserved area
         # Payload data following (before or after image)
         **kw)
Exemplo n.º 10
0
 def __init__(self, **kw):
     fields = (  # Available with CIS Interface version
         Uint2('version', opt=T_IN),  # 1 Interface version
         Uint2(
             'object_type', opt=T_IN,
             ppfunc=cio_str),  # 1 Object type to which the command applies
         Uint2('command', opt=T_IN, ppfunc=cic_str),  # 1 CIS command
         Uint2('option', opt=T_IN, ppfunc=cip_str),  # 1 CIS option
         Bytes(
             'puid', 28, opt=T_HEX
         ),  # 1 internal userid that distinguishes users with same userids
         #   id obtained from previous call, no translation done
         String(
             'uowid', 16,
             opt=T_IN),  # 2 Selector, optional, unit of work to be purged
         String(
             'topic', 96, opt=T_IN
         ),  # 4 Selector, optional, topic to be subscribed or unsubscribed to
         String(
             'uid', 32, opt=T_IN
         ),  # 4 Selector, optional, user name for subscription/unsubscription
         #   and participant shutdown
         String(
             'token', 32, opt=T_IN
         ),  # 4 Selector, optional, token for subscription/unsubscription
         #   and participant shutdown
         String(
             'server_class', 32, opt=T_IN
         ),  # 5 Selector, optional, for command log filter addition or removal
         String(
             'server', 32, opt=T_IN
         ),  # 5 Selector, optional, for command log filter addition or removal
         String(
             'service', 32, opt=T_IN
         ),  # 5 Selector, optional, for command log filter addition or removal
         Filler('reserved', 32),  # 5 Reserved
         String(
             'conv_id', 16,
             opt=T_IN),  # 7 Selector, optional, for shutdown conversation
         String('transportid', 3, opt=T_IN
                ),  # 7 Selector, optional, for transport task (NET|Snn|Tnn)
         #   required for RESUME,START,STATUS,STOP,SUSPEND
         Uint1(
             'exclude_attach', opt=T_IN
         ),  # 7 Optional. Exclude attach servers when shutting down a service
         Uint4(
             'seqno', opt=T_IN
         ),  # 7 Optional. Sequence number of participant (e.g. client, server,
         #   publisher) to be shut down. Can be used instead of puid
         Uint4(
             'error_number', opt=T_IN
         ),  # 7 Optional. Sequence number of participant (e.g. client, server,
     )
     Datamap.__init__(self, 'Cisreq', *fields, **kw)
Exemplo n.º 11
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBC',
         String('urbceye', 4),  # URBC eye-catcher 'URBC'
         Int4('urbclen'),  # Length of URBC
         String('urbcsnam', 8),  # Subscription name
         Uint4('urbctsnr'),  # Current transaction sequence number
         #   within subscription/destination
         Uint4('urbcrsnr'),  # Current record sequence number
         Uint4('urbcdsnr'),  # Current data sequence number for record
         String('urbccont', 1,
                ppfunc=urbcont_str),  # Indicator transaction continuation
         String('filler1', 19, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 12
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBH',
         String('urbheye', 4),  # URBH eye-catcher 'URBH' (in EBCDIC)
         Int4('urbhlen'),  # Length of URBH
         String('urbhvers', 2),  # Version indicator for URB* DSECTs:
         Int2('urbhbord', opt=T_HEX),  # Const 1 to indicate the byte order
         Uint4('urbhlent'),  # Total message length (including URBH)
         Uint4('urbhmsnr'),  # Message sequence number per destination
         Uint8('urbhtime', opt=T_STCK),  # Time (STCK) when message was sent
         Uint2('urbhrpid'),  # Target ID of originating Reptor
         Uint2('urbhrpni'),  # Nucleus ID of originating Reptor
         String('urbhname', 8),  # Sender name ('REPTOR' if sent by Reptor)
         String('filler1', 24, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 13
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU44',
         String('status', 2),  # Status == 'S' keep FDT
         Uint2('anchor'),  # Anchor/master file number
         **kw)
Exemplo n.º 14
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU41',
         String('fieldname', 2),  # field name
         Int4('newlength'),  # new field length
         **kw)
Exemplo n.º 15
0
 def __init__(self, **kw):
     fields=(                            # Available with CIS Interface version EXX 9/10
     String('server_class', 32,opt=T_NONE),# SERVER-CLASS
     String('server', 32,opt=T_NONE),    #  SERVER-NAME
     String('service',32,
         ppfunc=lambda svc:'%s/%s/%s' % (self.server_class,self.server,svc)),
                                         # SERVICE = class/server/service
     Uint8('uows'),                      # Number of active UOWs (active==current)
     Uint8('messages'),                  # Number of active UOW messages
     Uint8('Bytes'),                     # Number of bytes in active UOW messages
     Uint4('max_messages'),              # Max. number of messages in one UOW
     Uint4('max_bytes'),                 # Max. number of bytes in one UOW
     String('oldest_uow',32),            # Oldest time of UOW creation
     String('newest_uow',32),            # Newest time of UOW creation
     )
     Datamap.__init__(self, 'UOW Statistics', *fields, **kw)
Exemplo n.º 16
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU70',
         String('fieldname', 2),  # Descriptor name
         Uint1('reason'),  # Reason code
         Bytes('filler1', 5),
         **kw)
Exemplo n.º 17
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU',
         String('urbsueye', 6),  # URBSU eye-catcher 'URBSU' #
         Uint1('urbsutyp', ppfunc=urbsutyp_str,
               opt=T_HEX),  # Utility function type
         Bytes('filler1', 25, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 18
0
 def __init__(self, **kw):
     fields = (  # Available with CIS Interface version
         # 1
         String('server_class', 32, opt=T_NONE),  # SERVER-CLASS
         String('server', 32, opt=T_NONE),  #   SERVER-NAME
         String('service',
                32,
                ppfunc=lambda x: '%s/%s/%s' %
                (self.server_class, self.server, self.service)),
         # SERVICE = class/server/service
         String('translate', 8),  #    Name of translation routine
         Uint4('conv_nonact',
               ppfunc=intervalstr),  #    Conversation timeout
         Uint4('servers_act'),  #    Active servers
         Uint4('conv_act'),  #    Active conversations
         Uint4('conv_high'),  #    High watermark
         Uint4('longbuffer_act'),  #    Active LONG-BUFFER entries
         Uint4('longbuffer_high'),  #    High watermark
         Uint4('shortbuffer_act'),  #    Active SHORT-BUFFER entries
         Uint4('shortbuffer_high'),  #    High watermark
         Uint4('waitserver'),  #    No. waits for server MSGs
         Uint4('server_occupied'),  #    No. times all servers busy
         Uint4('pending'),  #    No. pending conversations
         Uint4('pending_high'),  #    High watermark
         Uint4('total_requests'),  # 1  Total number of requests
         Uint4('maxuows'),  # 2  Max # of active UOWs
         Uint4('maxuowmsg'),  #    Max # of messages per UOW
         Uint4('uwtime', ppfunc=intervalstr),  #    Max UOW life time
         Uint4('maxdelcnt'),  #    Max delivery count
         Uint4('maxmsgsize'),  #    Max message size
         Uint4('totaluows'),  #    Total number of active UOWs
         Uint1('store'),  #    Startup value STORE: 0: off, 1: Broker
         Uint1('uwstatp'),  #    uowStatusLifetime Multiplier
         Uint1('deferred'),  # 2  default status for UOW  0: no, 1: yes
         Uint1('enclevel'),  # 3  Encryption Level
         Uint4('attachmgrs_act'),  # 4  No. active attach managers
         Uint4('uwstat_addtime'),  # 4  UWSTAT-LIFETIME
         Uint4('num_conv'),  # 5  No. conversations
         Uint4('num_server'),  #    No. servers
         Uint4('longbuffers'),  #    No. long message buffers
         Uint4('shortbuffers'),  #    No. short message buffers
         String('conversion', 8),  #    Name of conversion routine
         String('conversion_parms', 255),  #    Conversion parameters
         String('unused1', 5, opt=T_NONE),  # 5 alignment
         Uint1('arf'),  # 10 Adabas replicator flag
         Uint1('scm'),  # 10 Single conversation mode
         Uint1('prefetch'),  # 10 Server: SCM: Prefetch
         String('rpc', 5),  # 10 Server: RPC: YES|NO|UNDEF
         Uint4('maxPostponeAttempts'),  # 10
         Uint4('postponeDelay'),  # 10
     )
     Datamap.__init__(self, 'Service', *fields, **kw)
Exemplo n.º 19
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBG',
         Uint2('urbgidx'),  # Element index in GFFT
         String('urbgfid', 2),  # Field short name
         Uint1('urbgffmt', ppfunc=urbgffmt_str),  # Field format
         Uint1('urbgtype', ppfunc=urbgtype_str),  # Field type
         Uint2('urbgflen'),  # Field length
         Uint2('urbgfprc'),  # Decimal place/precision
         Uint1('urbgflag', opt=T_HEX),  # ppfunc=urbgflag_str), # Flags
         Bytes('filler1', 1, opt=T_NONE),  # Reserved area
         # 1st level of occurrences:
         Uint2('urbgfrno'),  # Range number
         Uint2('urbgfrfm'),  # From-range number
         # 2st level of occurrences: 0x10
         Uint2('urbgfono'),  # Occurrence number
         Uint2('urbgfofm'),  # From-occurrence number
         Uint2('urbgfnml'),  # Length of field long name
         String('urbgfnam', 32),  # Field long name
         String('urbgfgrp', 2),  # Name of PE group
         String('urbgfmtx', 2),  # External Format Type  (Bytes?)
         String('urbgfrpn', 2),  # Redefined parent name
         String('urbgffon', 2),  # Field order number
         Bytes('filler2', 2, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 20
0
    def __init__(self, **kw):
        Datamap.__init__(
            self,
            'URBSH',
            String('urbsheye', 6),  # URBSH eye-catcher 'URBSH'
            Uint1('urbshver'),  # Length of URBS + data (C5DA) + filler
            String(
                'urbshtyp', 1
            ),  # Destination Broker 'E': if ETBINFO data == 0: no UOWs found (all consumed by target)
            Uint8('urbshctm',
                  opt=T_STCK),  # Time (STCK) of messaging system commit
            Uint8(
                'urbshttm', opt=T_STCK
            ),  # Time (STCK) of last transaction processed by destination
            Uint8(
                'urbshsdw',
                opt=T_STCK),  # Time (STCK) when heartbeat was written to SLOG
            Uint8(
                'urbshsdr', opt=T_STCK
            ),  # Time (STCK) when heartbeat was read from SLOG (de-logged)

            # the following fields are set for a EntireX Broker destination
            Uint8('urbshbtm', opt=T_STCK
                  ),  # Time (STCK) of ETBINFO taken (before sending URBS)
            Uint8(
                'urbshbtn', opt=T_STCK
            ),  # Time (STCK) when newest item was created in Broker queue
            Uint8(
                'urbshbto', opt=T_STCK
            ),  # Time (STCK) when oldest item was created in Broker queue
            Uint8('urbshbcb'),  # current number of bytes in Broker queue
            Uint8('urbshbcm'),  # current number of messages in Broker queue
            Uint8('urbshbcu'),  # current number of UOWs in Broker queue
            Uint4('urbshbxb'),  # max number of bytes in one UOW
            Uint4('urbshbxm'),  # max number of messages in one UOW
            **kw)
Exemplo n.º 21
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBF',
         String('urbfeye', 4),  # URBF eye-catcher 'URBF'
         Uint4('urbflen'),  # Length of URBF + related data (n*URBG)
         Uint4('urbflenh'),  # Length of URBF
         Uint4('urbflend'),  # Length of related data (n*URBG)
         String('urbfvers', 2),  # GFFT version indicator
         String('urbffnre', 5),  # File number eye-catcher
         Uint1('urbfflag', ppfunc=urbfflag_str),  #
         String('urbfgfid', 8),  # Global format ID related to GFFT
         Uint4('urbfdbid'),  # DBID of file
         Uint2('urbffnr'),  # File number
         Uint2('urbffnml'),  # Length of file name
         String('urbffnam', 32),  # File/userview name
         Uint8('urbftim1',
               opt=T_STCK),  # Time (STCK) GFFT was created/refreshed
         Uint2('urbfcntg'),  # Number of following URBG elements
         Uint2('urbfleng'),  # Length of each URBG element
         Uint8('urbftim2',
               opt=T_STCK),  # Time (STCK) GFFT for ADARDE(DEXIT)
         Bytes('filler1', 20, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 22
0
  def __init__(self, **kw):
    Datamap.__init__(self, 'Product or Subsystem Section',
    Uint2('typ',caption='SMF30 sub type',ppfunc=self.subtyp_str),
    String('rs1',2,opt=T_NONE),
    String('rvn',2,caption='Record version number'),
    String('pnm',8,caption='Subsystem product name'),

    String('osl',8,caption='MVS product level'),
    String('syn',8,caption='System name'),
    String('syp',8,caption='Sysplex name'),
    byteOrder=NETWORKBO,ebcdic=1,**kw)
Exemplo n.º 23
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBR',
         String('urbreye', 4),  # URBR eye-catcher 'URBR'
         Int4('urbrlen'),  # Length of URBR
         Uint4('urbrrsnr'),  # Record sequence number within transaction
         Int2('urbrdcnt'),  # Count of data elements (URBDs)
         Uint2('urbrfnr'),  # Original Adabas file number
         Uint4('urbrisn'),  # Original Adabas ISN
         Uint8('urbrtime', opt=T_STCK),  # Time (STCK) of last modification
         String('urbrtyp', 1, ppfunc=urbrtyp_str),  # Type of update
         String('urbrrsnd', 1,
                ppfunc=urbrsnd_str),  # Ind. possible double delivery
         Uint2('urbrrsp'),  # Response code
         Uint4('urbrsubc'),  # Subcode information
         String('urbrerrc', 8),  # Other error code information
         String('urbrdcu', 1, ppfunc=urbrdcu_str
                ),  # Indicator for delete to update conversion
         String('urbruc', 1, ppfunc=urbruc_str
                ),  # Indicator for update conversion to delete or insert
         String('filler1', 18, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 24
0
 def __init__(self, **kw):
     fields = (  # Available with CIS Interface version
         # | Optional/Required
         # | |
         Uint4('block_length'),  # 1 R  Return data in this length
         Uint2('version'),  # 1 R  Interface version
         Uint2('reserved1', opt=T_NONE),  #
         Uint2(
             'object_type'),  # 1 R  Object type for which info is requested
         String('uid', 32),  # 1 O  Selector user id of client or server
         Bytes('puid', 28, opt=T_HEX
               ),  # 1 O  Selector internal userid that distinguishes users
         #      with same userids, no translation done
         String('token', 32),  # 1 O  Selector
         String('server_class', 32),  # 1 O  Selector
         String('server', 32),  # 1 O  Selector
         String('service', 32),  # 1 O  Selector
         String('conv_id', 16),  # 1 O  Selector
         Uint2('reserved2', opt=T_NONE),  # 1
         String('uowid', 16),  # 2 O  Selector
         Uint1('uowstatus'),  # 2 O  Selector
         String('userstatus', 32),  # 2 O  Selector
         String('recvuid', 32),  # 2 O  Selector UOW reciever's user id
         String('recvtoken', 32),  # 2 O  Selector UOW reciever's token
         String('recvserver',
                32),  # 2 O  Selector UOW reciever's server name
         String('recvservice',
                32),  # 2 O  Selector UOW reciever's service name
         String('recvclass', 32),  # 2 O  Selector UOW reciever's class name
         String('reserved3', 3, opt=T_NONE),  # 2
         String('topic', 96),  # 4 O  Selector
         String('publicationid', 16),  # 4 O  Selector
         Uint2('subscriptiontype'),  # 4 O  Selector
         Uint2('reserved4', opt=T_NONE),  # 4
         Uint2('conv_type'),  # 5 O  Selector
         Uint2('reserved5', opt=T_NONE),  # 5
     )
     Datamap.__init__(self, 'Infreq', *fields, **kw)
Exemplo n.º 25
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBT',
         String('urbteye', 4),  # URBT eye-catcher 'URBT' #
         Int4('urbtlen'),  # Length of URBT
         String('urbtsnam', 8),  # Subscription name
         Uint4('urbttsnr'),  # Transaction sequence number
         #   within subscription/destination
         Uint4('urbtrcnt'),  # Count of records (URBRs) in transaction
         Uint8('urbtttim', opt=T_STCK),  # Time (STCK) transaction commit
         Uint8('urbtptim', opt=T_STCK),  # Time (STCK) end of subscription
         Uint2('urbtdbid'),  # Originating Adabas database ID
         Uint2('urbtnuci'),  # Originating Adabas nucleus ID
         Bytes('urbtguid', 28),  # Originating 28-byte user ID
         Uint2('urbtrpid'),  # Reptor target ID (DBID parameter)
         Uint2('urbtrpni'),  # Reptor nucleus ID (not yet used) => zero
         String('urbtusrv', 2),  # User subscription version indicator,
         String('urbtrsnd', 1,
                ppfunc=urbrsnd_str),  # Ind. possible double delivery
         String('urbtinst', 1,
                ppfunc=urbtinst_str),  # Ind. for initial state
         String('urbtrtok', 8),  # Request ID token (if initial state)
         String(
             'urbtcont', 1,
             ppfunc=urbcont_str),  # Indicator for transaction continuation:
         Bytes('urbtarc', 1),  # Architecture flags for selection data
         String('urbtptrn', 1,
                ppfunc=urbtptrn_str),  # Prior-transaction request indicator
         String('urbtsort', 1,
                ppfunc=urbtsort_str),  # Transaction records sorted
         Uint4('urbtacod'),  # alpha field encoding in selection data
         Uint4('urbtwcod'),  # wide field encoding in selection data
         Uint2(
             'urbtutok'
         ),  # utility token if data comes from Replay or Adalod Load/Update
         String('urbtorig', 1, ppfunc=urborig_str),  # Origin of transaction
         String('filler1', 1, opt=T_NONE),  # Reserved area
         String('urbtsuid', 8),  # Security system user id
         String('filler2', 16, opt=T_NONE),  # Reserved area
         **kw)
Exemplo n.º 26
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'new_URB',
         String('eye', 4),  # eye-catcher 'URBx'
         **kw)
Exemplo n.º 27
0
    def __init__(self, **kw):
        Datamap.__init__(
            self,
            'URBS',
            String('urbseye', 4),  # URBS eye-catcher 'URBS' #
            Int4('urbslen'),  # Length of URBS + data (C5DA) + filler
            String('urbsrtok', 8),  # Request ID token (from original request),
            String('urbsrt', 4),  # Request type (blank if no request):
            String('urbsst', 4,
                   ppfunc=urbsst_str),  # Reptor status/response information:
            Uint8('urbstime',
                  opt=T_STCK),  # Time (STCK) when this URBS was created
            Uint4('urbsrsp'),  # Response code for request
            Uint4('urbssubc', ppfunc=self.urbssubc_str),  # Subcode for request
            String('urbserri', 8),  # Other pertinent error information
            String('urbsinam',
                   8),  # Initial-state name (INIT/CMPL/ERRO message)
            String('urbssnam', 8),  # Subscription name (ASEC/C5DA/DCMP/DEAC/
            # LOST/REAC/REFR/RPLE/RPLS/SUBS/TRSP msg)
            String(
                'urbsdnam', 8
            ),  # Destination name (DEAC/DERR/FULL/REAC/REFR/SLOF/SLON message)
            Uint8('urbsptim', opt=T_STCK),  # Time (STCK) transaction processed
            # for subscription (SUBS)
            Uint8('urbsttim', opt=T_STCK),  # Time (STCK) transaction commit
            # (ASEC/AUTI/C5DA/SUBS)
            Uint4('urbstsnr'),  # Transaction sequence number within
            # subscription/destination (SUBS/TRSP message)
            Uint2('urbsdbid'
                  ),  # Database ID  //(ASEC/CMPL/DCMP/DEAC/ERRO/INIT/LODS/
            Uint2('urbsfnr'
                  ),  # File number // LODE/LOST/REAC/SAVS/SAVE/UPDS/UPDE msg)
            Int4('urbslenh'),  # Length of URBS
            Int4('urbslend'),  # Length of related data (at URBSDATA)
            Uint2('urbsutok'
                  ),  # Utility token (CMPL/ERRO/INIT/LODS/LODE/RPLS/RPLE/
            #   SAVS/SAVE/UPDS/UPDE message)
            String('urbsorig', 1,
                   ppfunc=urborig_str),  # Origin of status (C5DA/RPLS/RPLE)
            String('filler1', 5, opt=T_NONE),  # Reserved area
            String('urbsiqnm', 8),  # Input Queue name (IQCL/IQOP/REFR msg)
            String('filler2', 8, opt=T_NONE),  # Reserved area
            #urbsdata    following here. Add URBSL to the URBS start

            # For the RPLS/RPLE message, URBSDATA contains a list of 2-byte
            # file numbers of the file(s) associated with the replay process
            # for the subscription given in URBSSNAM
            **kw)
Exemplo n.º 28
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU4F',
         String('dsreuse', 4),  # 'ON'/'OFF' #
         **kw)
Exemplo n.º 29
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU4B',
         String('filename', 16),  # file name
         **kw)
Exemplo n.º 30
0
 def __init__(self, **kw):
     Datamap.__init__(
         self,
         'URBSU4A',
         String('fieldname', 2),  # field name
         **kw)