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 |
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?
How to write record if no field or the field are different in physical file in rpgle ?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
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?
how do u track msg in cl pgm???
what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????
what is the necessary command needed before OPNQRYF and why?
what is the difference between the cpyf command crtdupobj command?
1.The questions have given an array declaration and move operation then this statement is correct or not?
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?
why we do STRSRVJOB in batch debugging in as400
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?