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 |
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
what is *place and *auto keyword in prtf ?plz explain
What is the OPEN and CLOSE accesspath?
How to sort an array in descending in RPG
How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?
11 Answers Bank Of America, CSC, IBM,
Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.
How to search particular records from the database file in rpg?
As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please tell me when we have to use Packed and Zone variable...?
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.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?
1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?
How do you find whether a record is locked or not?