Question about Voice language and Librarian

Document ID : KB000125002
Last Modified Date : 21/01/2019
Show Technical Document Details
Question:
I executed the following action in my voice program.
The program receives the 'STRING' to find when executing and Vollie member.
%VOLSRCH READ VTUSSTAB

The below is a part of program using VOLLIE OLLFILE.
'LIST '@VAR2
@SW = 'N'
WHILE (@SW NE 'Y')
'POS /'@VAR1'/'
IF (S.RC EQ 0) THEN
BEGDATA OUTPUT=SRCHFOR#
@VAR2' Line 'LPAD(S.BUFFNUM,5)
END
ELSE @SW = 'Y'
ENDIF
ENDWHILE

The following is the result of #SRCHFOR.
VTUSSTAB Line 216
VTUSSTAB Line 285

But in the Librarian master case the command ‘DISPLAY’ is used on behalf of ‘LIST’ command.

'DIS '@VAR2
@SW = 'N'
WHILE (@SW NE 'Y')
'POS /'@VAR1'/'
IF (S.RC EQ 0) THEN
BEGDATA OUTPUT=SRCHFOR#
@VAR2' Line 'LPAD(S.BUFFNUM,5)
END
ELSE @SW = 'Y'
ENDIF
ENDWHILE

In this case I can’t ‘S.BUFFNUM’.
I know that ‘S.BUFFNUM’ Is belonging to 'CURRENTLY LISTED MEMBER VARIABLES'.
So what variable can I use in 'CURRENTLY DISPLAYED MEMBER VARIABLES'?
Environment:
z/VSE any level
Vollie any level
Librarian any level
Answer:
Instead of S.BUFFNUM
 
You should use
 
S.SHOWNUM