i'm working on progA , in that program i want to see the
userids of the users who work on this program?

Answers were Sorted based on User's Feedback



i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / ali

by using WRKACTJOB, u can see the names of users using this
pgm while they are using

Is This Answer Correct ?    8 Yes 3 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / ken

Use the Program Data Structure (SDS) in D-Spec.

Positions 254 to 263 gives you the user running th program

Is This Answer Correct ?    8 Yes 3 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / syam

You can't see other user id in which program you are using.
You can see current user id means your id if you are using
the program you can use RTVUSRPRF command in CL or Program
Data Structure you can specify position 254 to 263 in RPG

Is This Answer Correct ?    7 Yes 2 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / kumar

If anyone does not know the answer, plz DO NOT POST THE
ANSWERS AND POLLUTE THE SITE! The info will be read by
somany people who SCOLD!!

Is This Answer Correct ?    5 Yes 0 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / naga srinivas

WRKOBJLCK and then F6, then u can see the workstations which
are using that pgm.

Based on the WORKSTATION ID, u can use DSPUSRPRF, u can get
the details of USER

Is This Answer Correct ?    1 Yes 0 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / anupam

the program must be stored in some source physical
file/library. to fetch who has locked the program we can do
WRKOBJLCK OBJ(LIBRARY/QRPGLESRC) OBJTYPE(*FILE) MBR(progA)

Here LIBRARY/QRPGLESRC is the library and source physical
file where the member progA is stored.

Is This Answer Correct ?    1 Yes 0 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / sekhar214

SYAM IS RIGHT.IF YOU REALLY WANT TO SEE THE USERS , MAINTAIN A OUT FILE, WRITE THE USER NAME INTO THAT FILE WHEN THAT JOB IS CALLED.

Is This Answer Correct ?    0 Yes 0 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / ravikumar895

1)WRKUSRJOB

2)program status data structure

D data structure name SDS

D USER 254 263
* Username

Is This Answer Correct ?    0 Yes 0 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / sanjay

Use WRKOBJLCK

Is This Answer Correct ?    2 Yes 7 No

i'm working on progA , in that program i want to see the userids of the users who work on thi..

Answer / mithun paul

You can use RTVUSRPRF command in CL.

Is This Answer Correct ?    0 Yes 10 No

Post New Answer

More RPG400 Interview Questions

1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?

1 Answers   HP,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


can I touch the array during treatments?

0 Answers   IBM,


what is the difference between SETON RT & RETURN?

5 Answers  


What are the necessary keywords required to code a message subfile?

3 Answers  






Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?

3 Answers  


What is the RPG cycle?

3 Answers   CSC,


Maximum how many files declare in rpgle

3 Answers   TCS,


why subproc not run in dftactgrp?????/plz explain

2 Answers   CSC,


3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


How do you find whether a job is a batch job or interactive?

4 Answers  


Categories