PreviousNext
Help > Development > W-Language Functions for AS/400 > ASUser > Example
Example

 

HOpenConnection(MyConnecton, User, Pwd, "AS400", hNativeAccessAS400, hOReadWrite, "")

... 

ASUser(SuperID , SuperPWD )

 

User and Pwd are typed by the real user. They validate the user login on the system.

By providing SuperID and SuperPWD with function ASUser(), the program increases the authority of the job on the database. Even is the real user has no authority on the data, the application will be able to access files.