BBjSessionInfo::getLineListing

Description

In BBj 4.00 and higher, this method returns the line listing currently being executed in the session described by this BBjSessionInfo.

Syntax

Return Value

Method

string

getLineListing()

Parameters

None.

Return Value

The line listing or general status description of the session described by this BBjSessionInfo.

Remarks

If the session is not currently executing a program line, a general status description is returned. The current values include "<terminating>", "<console stopped>", "<console running>" and "<program is protected>".

Example

rem ' BBjSessionInfo

info$ = stbl("!SESSIONINFO","Session Info Message")
info! = bbjapi().getCurrentSessionInfo()
print 'br',"bbjapi().getCurrentSessionInfo: ",'er',info!
print "getUser: ",info!.getUser()
print "getUnresponsiveTime:",info!.getUnresponsiveTime()
print "getIPAddress: ",info!.getIPAddress()
print "getConnectTime: ",info!.getConnectTime()
print "getProgramName: ",info!.getProgramName()
print "getProgramLine:",info!.getProgramLine()
print "getLineListing: ",info!.getLineListing()
print "isBackground: ",info!.isBackground()
print "getSessionID:",info!.getSessionID()
print "getTerminalID: ",info!.getTerminalID()
print "getTerminalName: ",info!.getTerminalName()
print "getMessage: ",info!.getMessage()

vector! = bbjapi().getSessionInfos()
size = vector!.size()
print 'br',"bbjapi().getSessionInfos:",'er'
for i = 0 to size - 1
    info! = vector!.get(i)
    print info!
next i
end

See Also

BBjAPI

BBjAPI::getSessionInfos

BBjSessionInfo

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.