8
© 2002. Xephon UK telephone 01635 33848, fax 01635 38345. USA telephone (303) 410 9344, fax (303) 438 0290.
variable; but all fields found are listed at the terminal and can be
SYSOUTTRAP’d (OUTTRAP in REXX) if required.
Repeat-group fields
Where a field is a member of a repeat-group, the number of occurrences
retrieved (the ‘count’) is put in a variable with the same name as the
field specified, and a numeric suffix is appended to the variable name
to uniquely identify each occurrence of the repeat-group.
For example, if a user was connected to ten groups and the command
line included ‘FIELDS(CGGRPNM) ’ the following variables would
be created:
‘CGGRPNM’ = 10 (the number of CGGRPNM occurrences)
‘CGGRPNM1’ = the name of the 1st connect group
‘CGGRPNM2’ = the name of the 2nd connect group
etc
‘CGGRPNM10’ = the name of the 10th connect group.
Userdata fields
For each occurrence retrieved a variable is created with a name equal
to the contents of the Userdata Name field (USRNM), and its value is
the contents of the Userdata Data field (USRDATA). In addition, the
Flag value (USRFLG) is put into a variable with the same name plus
a suffix of ‘F’.
For example, if the following command had been issued to add
userdata fields to the user profile for USER1:
MCINTY ADD PR(USER1) FI(JOBCAT) DATA('OPERATIONS') FLAG(3)
then issuing the following command:
MCINTY GET PR(USER1) USERDATA
the following variables would be created:
Variable: JOBCAT Contents: OPERATIONS
Variable: JOBCATF Contents: ØØ3
Comentarios a estos manuales