Why would you do a CHGPF? That would only be if the file layout is changing. Then it would need to be done on both sides, the from and to files. I assume you are not adding or removing fields from a record definition. They could impact other software/programs if the formats no longer match.
Whats the issue you are facing ..
Go foe ibm iseries public libraryntoo.will help you
DSPUSRPRF XXXXXXXXXX and check Password expiration interval if set to *SYSVAL then check SYSTEM VALUE QPWDEXPITV which will show number of days when password expires if ignored, then after specific number of attempts if setup will disable profile
Am I right
I really think so…what does everyone else think?
Please check CHGRP command.
Thank you all! I will check it. I hope the file is not added a delete trigger but I’m not sure.
Thank you all for your valuable support.
Hope you are using IHA ..for taking the backup..use f1 in the joblog and you will get the job details
when you do this SQL delete, you are going to fire the trigger for EVERY record in the file. Depending on how many records there are and how complex the trigger is, this could add up to a significant amount of time
Google for the Api I had given..you will get the code for the same … anu
Create a user space with module “CrtUsrSpc” (source has been included below).
Run API “QUSLJOB” to return information of iSeries job. use any format name “JOBL0200″ to retrieve “job status” and “subsystem”. Job status has “key of field = 0101″ and subsystem “key of field = 1906″.
Run API “QUSRTVUS” to get user space attribute
- starting position of information
- number of entries (number of jobs)
Run a loop to retrieve information on all jobs that have been loaded in the user space — one loop for one job.
First, run API “QUSRTVUS” to retrieve information about one job. This information has been retrieved in data area “.
Second, retrieve “key fields” in and loop.
Key field 0101 = job status
Key field 1906 = subsystem
Third, if the job has status *MSGW and e-mail is sent to an Administrator.
crtrpgmod module(yourlib/crtusrspc) = create user space (source included in prior mail)
crtrpgmod module(yourlib/nkvr4292) = mail program
crtpgm pgm(yourlib/nkvr4292) module(yourlib/nkvr4292 yourlib/crtusrspc) actgrp(nkv)
No problem asking the questions.
Yes, you will need to wait untile the subsystem is down to make the changed.
But depending on the size of this file, you could start the other process of using SQL DELETE and then CPYF wiht *ADD, right now.
You would need watch disk space and then in addition to do the CHGPF command later, you would also want to do a CLRPFM or RGZPFM command because you have a largeer number of deleted records in the fiel.
When that happens it is because 1 or more of the objects in that library was locked.
If you look throught the joblog, you will be able to find out what object(s) did not get saved.
Hi Tom,
We have logged a call with IBM, They helped us to resolve this printer issues.
We updated our form plus firmware, Then our problem got resolved.
Thanks for your help.
With Regards,
Venkata Krishna
I wrote a series of articles, starting with Module, Module, Who’s Got My Module located at http://www.mcpressonline.com/programming/apis/the-api-corner-module-module-whos-got-my-module.html, almost five year ago now, which provides this capability. The full series is:
http://www.mcpressonline.com/programming/apis/the-api-corner-module-module-whos-got-my-module.html
http://www.mcpressonline.com/programming/apis/the-api-corner-finding-modules-in-a-srvpgm.html
http://www.mcpressonline.com/programming/apis/the-api-corner-finding-all-*srvpgms-on-the-system.html
http://www.mcpressonline.com/programming/apis/the-api-corner-take-advantage-of-open-list-apis.html
http://www.mcpressonline.com/programming/apis/the-api-corner-finding-modules-in-a-pgm.html
http://www.mcpressonline.com/programming/apis/the-api-corner-parallelism-with-open-list-apis.html
Else we need to wait until..the subsystem is down
Charlie.. The thing is that we cant bring down the other job..as it is a highly critical job. Do we have any other way..to do this..
Sorry if I’m asking too much..
No, you cannot do a CHGPF on a locked object.
You would have to end the other job and and any other jobs using the file, then make the change and start the other job again.
And is it possible to do a CHGPF on a locked file …this file is locked 24×7!!!







