I have done it.
1. IP Address of the PC can be Retrieved by using QDCRDEVD API. Use format DEVD0600. Retrieve IP Address from 877 position to 16 digits.
2. Store the User name in Local PC by executing ‘CMD C/ ECHO %USERNAME > C:/TEMP/USER.TXT’ through STRPCO & STRPCCMD commands.
FTP the Text file from PC to IFS folder by using STRPCCMD.
Copy the file from IFS to DB file by using CPYFRMSTMF command.