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
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
what are the key words you must use when using a subfile?
steps for debugging two rpg programs????
If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?
Can someone tell me tell me what is meant by message wait...?
How to identify the object has compiled with the debug view as *source without using STRDBG?
Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?
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...?
Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any
Need a sql query: retrive all duplicate records in table
how do I do concatenation in rpg iv, like I do in cl?
HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?
how to run only 10 modules of existing N modules in service program in RPGILE ?