1. User id and lots of other cool stuff is in the program data structure
D ProgramDs SDS
D UserID 254 263
Use the UserID anywhere in your program
2. send command to clear a workfile
Provided your program isn't locking the file you could issue A CLRPGM through QCMDEXEC
Last Wiki Answer Submitted: July 31, 2009 2:28 pm by philpl1jb44,180 pts.
All Answer Wiki Contributors: philpl1jb44,180 pts.