How can I access the data that is returned when using the LISTUSER command? What file and account is it being stored in?
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
Page 1 / 1
How can I access the data that is returned when using the LISTUSER command? What file and account is it being stored in?
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
Hi Robert,
We use Universe, so not sure how relevant this is to you
I created my own VOC Paragraph LISTUSERS some time ago (Account name and USERS changed), it works to screen or to TEXT
| CURRENT LOGGED IN USERS AT 12:48:59pm | 28-Oct | 2022 | PAGE 1 | |
| ACCOUNT........ | USER ID............. | SESSION | LOGGED | IN TIME.... |
| LIVEACC | 0 | 5216 | 28-Oct | 09:49:05 |
| LIVEACC | USERNAME1 | 2140 | 28-Oct | 09:37:24 |
| TESTCACC | USERNAME2 | 14328 | 28-Oct | 09:16:51 |
| LIVEACC | USERNAME3 | 14288 | 24-Oct | 09:30:18 |
| LIVEACC | USERNAME4 | 8724 | 28-Oct | 12:28:20 |
| LIVEACC | USERNAME5 | 13668 | 28-Oct | 11:58:47 |
| TESTCACC | USERNAME6 | 6848 | 28-Oct | 11:59:54 |
| LIVEACC | USERNAME7 | 13896 | 28-Oct | 10:08:59 |
| LIVEACC | USERNAME8 | 1332 | 28-Oct | 07:41:48 |
| LIVEACC | USERNAME9 | 10220 | 28-Oct | 08:45:58 |
| TESTCACC | USERNAME10 | 8912 | 28-Oct | 11:53:02 |
| LIVEACC | USERNAME11 | 6096 | 28-Oct | 12:07:05 |
| LIVEACC | USERNAME12 | 7544 | 28-Oct | 12:43:11 |
| LIVEACC | USERNAME13 | 5304 | 28-Oct | 12:00:38 |
| TESTCACC | USERNAME14 | 12956 | 28-Oct | 05:59:01 |
| LIVEACC | USERNAME15 | 14016 | 28-Oct | 07:08:42 |
| LIVEACC | USERNAME16 | 5740 | 28-Oct | 09:36:29 |
| LIVEACC | USERNAME17 | 5244 | 28-Oct | 12:38:50 |
| TESTCACC | USERNAME18 | 3956 | 28-Oct | 10:27:54 |
| LIVEACC | USERNAME19 | 11960 | 28-Oct | 12:47:06 |
| LIVEACC | USERNAME20 | 4704 | 28-Oct | 09:12:20 |
| LIVEACC | USERNAME21 | 8268 | 28-Oct | 06:05:32 |
record - LISTUSERS File - VOC Account - 12:46:51 28 OCT 2022
0001: PA
0002: CS
0003: LIST DMCONT "SB.ACCOUNTS" USING DICT ITFILE BY-EXP DMUSER DMACCOUNT DMUSER DMPID DMDATE DMTIME ID-SUPP HEADING "CURRENT LOGGED IN USERS AT 'T' PAGE 'P'"
0004: DISPLAY
0005: DISPLAY
0006: DISPLAY <<PRESS RTN TO CONTINUE>>
Where:-
FILE DMCONT = \\ACCOUNTS\\SBPLUS\\SB+.DEFN\\D_DMCONT
RECORD = "SB.ACCOUNTS"
DMACCOUNT = field<1>
DMUSER = field <2>
DMPID = field<3>
DMDATE = field <8>
DMTIME = field<9>
I hope this helps
Thanks
Andy
------------------------------
Andrew Milne
Business Systems Manager
Potter and Moore Innovations
Peterborough, Cambs GB
------------------------------
How can I access the data that is returned when using the LISTUSER command? What file and account is it being stored in?
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
------------------------------
Mark A Baldridge
Principal Consultant
Thought Mirror
Nacogdoches, Texas United States
------------------------------
Possibly the simplest approach is to add the INTERNAL keyword to the command and parse the output. The output detail lines will be comparable to dealing with record reads.
------------------------------
Mark A Baldridge
Principal Consultant
Thought Mirror
Nacogdoches, Texas United States
------------------------------
------------------------------
Mark A Baldridge
Principal Consultant
Thought Mirror
Nacogdoches, Texas United States
------------------------------
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
Does INTERNAL work for Unidata - INTERNAL
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
------------------------------
robert modrich
Developer
Rocket Forum Shared Account
TEMECULA CA US
------------------------------
------------------------------
David Green
Computer Programmer
Rocket Forum Shared Account
------------------------------
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.