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.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


What is the difference between RPG/400 and RPG4

1 Answers   HCL,


i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?

1 Answers   IBM,


What are the types of identifiers?

0 Answers  


how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

1 Answers  






How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


Can an indexed file be accessed in arrival sequence in RPG?

3 Answers  


Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


What is journalling and commitment control?

3 Answers   IBM,


Can we have a Physical file without any member ? Please let me know

12 Answers  


How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??

1 Answers  


I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....

1 Answers  


Categories