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 |
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?
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.
can I touch the array during treatments?
what is the difference between SETON RT & RETURN?
What are the necessary keywords required to code a message subfile?
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?
What is the RPG cycle?
Maximum how many files declare in rpgle
why subproc not run in dftactgrp?????/plz explain
3 members in databasefile .how to read records from all the members??
what is the difference between the cpyf command crtdupobj command?
How do you find whether a job is a batch job or interactive?