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

i have a file with the values 10, 20, 30, 40, if am setll with the value 25 then readp, so what it will return?

6 Answers   Mind Tree,


How to write record if no field or the field are different in physical file in rpgle ?

0 Answers  


do you use message subfiles? What are the necessary keywords required coding a message subfile?

0 Answers   IBM,


A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?

2 Answers   IBM,


how do u track msg in cl pgm???

1 Answers   CTS,






what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????

1 Answers   CTS,


what is the necessary command needed before OPNQRYF and why?

5 Answers  


what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


1.The questions have given an array declaration and move operation then this statement is correct or not?

3 Answers   TCS,


1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?

3 Answers   HSBC,


why we do STRSRVJOB in batch debugging in as400

1 Answers  


Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?

3 Answers   Steria,


Categories