Hi Steve,
I believe that this code might work for you.
/* REXX */
Address 'SYSVIEWE' /* Set address env */
'COMMAND(SET APISTACK OFF)' /* Set EDQ off */
'COMMAND(SMSGROUP)' /* Sysview command */
'COMMAND(XVEXTRAC DATA Name sms_group.)' /* Extract Name to stem */
'COMMAND(XVEXTRAC DATA Type sms_type.)' /* Extract Type to stem */
'COMMAND(XVEXTRAC DATA Free sms_free.)' /* Extract Free to stem */
'COMMAND(XVEXTRAC DATA Used sms_used.)' /* Extract Used to stem */
'COMMAND(XVEXTRAC DATA Used% sms_usedPct.)' /* Extract Used% to stem */
'COMMAND(XVEXTRAC DATA Description sms_desc.) /* Extract Description to stem */
Select
When RC > 4 Then Do /* if RC > 4 */
Say 'API command error RC = 'RC /* Then say so */
Say SYSV_MESSAGE /* dispaly sysv msg */
Signal PGM_EXIT /* Get Out */
End /* When RC > 4 */
When RC > 0 Then , /* if RC > 0 */
Say SYSV_MESSAGE /* display sysv msg */
Otherwise NOP /* No OP */
End /* Select */
Do i = 1 to sms_name.0 /* Loop through stem var */
Say 'SMS Group = 'sms_group.i' Type = 'sms_type.i' Free = 'sms_free.i' Used = 'sms_used.i
Say 'Used % = 'sms_usedPct.i' Descr = 'sms_desc.i
End
PGM_EXIT:
'COMMAND(End)' /* end Sysview session*/
Return RC
Now if you wanted a specific SMS Group you could add a SELECT command before the XVEXTRAC commands like;
'COMMAND(SELECT NAME EQ STANDARD)' /*limit display to group STANDARD */
Also in CA OPS OSF servers, there is no requirement to ADDRESS 'LINK' 'GSVXRAA'), but this would be required in a TSO REXX.
Also the online help for XVEXTRAC is very detailed and helpful.
------------------------------
Jerry Scott
Broadcom Technical Consultant
Jerry.scott2@broadcom.com------------------------------
Original Message:
Sent: Mar 23, 2022 07:05 AM
From: Hennie Hermans
Subject: Extracting the SMS group description using ops/MVS and Address Sysview
Hi Steve,
For the Sysview Rexx execution..
When i check the XVEXTRAC help screen the sample Rexx shows another syntax as you used in your Rexx program.
See here the sample:
....+....1....+....2....+....3....+....4....+....5....+....6
/* REXX */
ADDRESS 'LINK' 'GSVXRXAA'
ADDRESS 'SYSVIEWE'
'COMMAND(ACTIVITY) STACK(NO)'
'COMMAND(XVEXTRAC DATA jobname jobname.)'
DO i = 1 TO jobname.0
SAY "jobname." || i jobname.i
END
'COMMAND(END)'
EXIT
Could you please change your Rexx according the sample and see if it works.
Best regards
Hennie Hermans
------------------------------
Principal Support Engineer
Broadcom Software
Original Message:
Sent: Mar 22, 2022 11:00 AM
From: Steve Ives
Subject: Extracting the SMS group description using ops/MVS and Address Sysview
I am trying to extract the SMS Group description from the SMSGROUP panel via an Ops/MVS Ops/EXEC as follows:
this = opsinfo('program')
sysvcmd = 'SMSGROUP;',
'SEL NAME eq 'smsGroup';',
'XVEXTRAC DATA Type type.;',
'XVEXTRAC DATA Capacity capacity.;',
'XVEXTRAC DATA Free free.;',
'XVEXTRAC DATA Used used.;',
'XVEXTRAC DATA Used% usedPct.',
'XVEXTRAC DATA Description desc.'
say this" returned "desc.0" description lines"
but desc. is not being populated.
Is it not being returned or do I have the wrong column name, and if so how do I find the correct one?
Thanks,
Steve