Hi, I want to receive message text of diagnostic message that encounters in program. I want it in a variable so that I can write it into a error log file. Please suggest a way to trap them and to have the text. I tried using RCVMSG but it didn't work out. Thanks!

I have a requirement of reading a IFS file from CL program. As far as I know there is no direct way of achieving this. I am planning ot use CPYFRMSTMF followed by CPYF to copy the IFS file first as a memeber and then as a database file. Is there any better way to achieve this? Regards Sudip

Hi everybody, How to do performance tuning in iSeries? Currently we are using V5R3. Now a days system is going slow. Anybody have a CL program to do performance tuning. Or give same easy steps to do this. "Thanks in advance" Regards, Baskar M.

Hi, I have been tasked with writing a CL program that will be run every night that releases a held Outq and allows the contents to go through then, put the outq back on hold once there are no more spool files in it. Is there an API or something I can use in a CL program that will check for an empty...

I am trying to use the SAVOBJ command to copy files to a save file. Is there a way to add to the save file and not write over it with each SAVOBJ call? I know I can create a list of files and send all of them to one save file but I would rather just add to the save file if possible. Thanks!

We need to invoice our customers the cost of platinum used in some process, based on its usage in grams. I need to retrieve the current market price of platinum from internet and use it in RPG program to do the calculations. How can we retrieve the current market price of Platinum in a RPG/CL...

Hello I am struggling with first user exit program. I only want to allow specific users (those keyed into a file), to be able to log into FTP. In addition, I only want to allow the function of the SENDING of files, once logged in. I am struggling with how to capture the user id from the STRFTP...

Is there any other way to read values through data area except using 'IN'Opcode in RPG and RTVDTARA command in CL? Please tell me if it could be done in other ways in our RPG program or in our CL program?

Hi. If a user profile already has a CL in the initial program to call parameter and that CL can't be modified to add a sndbrkmsg. Is there another way to have a message sent to the admin that a specific user has just signed on to the iSeries?

I'm executing a RUNSQLSTM out of a CL program that run a source SQL statement in a source file of a library. Everytime the statement is executed I get a output spool file of the SQL parmeters and execution results. How can I prevent this?

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy