Link to home
Start Free TrialLog in
Avatar of kouthe
kouthe

asked on

Command values

Is it posible for me to chang the defold values of a AS400 command so as the SRCFILE parameter from the CRTPF command is now QDDSSRC, I like to chang that to QDBSRC.
How can i do it.

Avatar of olidel
olidel

Hi,

    Use the following command with the value that you wish to use :

CHGCMDDFT CMD(*LIBL/CRTPF) NEWDFT('srcfile(*libl/QDBSRC)')

Bye.
ASKER CERTIFIED SOLUTION
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well, murphey2 is right but there is another way to solve these problems, and this is the way we are doing with ou AS/400s.

     1 - You must modify only the really necesary command that you want.
     2 - You must know the parameter and the comand that you are changing.

     3 - In case of an upgrade of our system we run a special program which is modifying among other thing the defaults values of a few commands supplied by IBM to fit our needs. This program is very useful because anyway IBM change quite a few things when you are doing an upgrade (system values, subsystem description, a.s.o.). This program is putting back after an upgrade all those values the way we want them. Of course, you have to maintain this program.

     4 - Don't forget IBM can also change the default value of it's own command between 2 releases or with a PTF.

     5 - This is true that software package can use the standard command. But, if you want that these package work the way you want you must sometimes modify the IBM command. Of course, you must be very careful an you must know what you are doing.

Bye

Well, murphey2 is right but there is another way to solve these problems, and this is the way we are doing with ou AS/400s.

     1 - You must modify only the really necesary command that you want.
     2 - You must know the parameter and the comand that you are changing.

     3 - In case of an upgrade of our system we run a special program which is modifying among other thing the defaults values of a few commands supplied by IBM to fit our needs. This program is very useful because anyway IBM change quite a few things when you are doing an upgrade (system values, subsystem description, a.s.o.). This program is putting back after an upgrade all those values the way we want them. Of course, you have to maintain this program.

     4 - Don't forget IBM can also change the default value of it's own command between 2 releases or with a PTF.

     5 - This is true that software package can use the standard command. But, if you want that these package work the way you want you must sometimes modify the IBM command. Of course, you must be very careful an you must know what you are doing.

Bye

Sorry, for the duplicate message, It looks like my browser didn't handle in a correct manner the prvious message.
Oke... if it is realy important that you use the same commands as the standard IBM, copy the command from QSYS to a (new) library e.g. "MYSYS".
You can change the defaults of this command as you like.
and then put this library in the system part of your librarylist with chgsyslibl.

But beware.... a lot of commands have different versions on your system they are stored in libraries as:

QSYS      
QSYSV3R1M0
QSYSV3R2M0
QSYSV3R6M0
QSYSV3R7M0
QSYS38    

I advise to use the one from QSYS, this is the one that will be used by typing CRTPF.

To avoid problems with the standard packages, you better not change IBM supplied commands.
Even if you start jobs in a standard package BE SURE WHAT YOU ARE DOING or start an other session without the new made "command library".

Good luck
Additional information
----------------------

I have scaned thru our standard package and I could not find any program that uses the SRCFILE parameter from the CRTPF command.

the most commands look like this:
CRTPF FILE(QTEMP/CUSTMSTR) +
      MAXMBRS(*NOMAX) +
      SIZE(*NOMAX) +
      REUSEDLT(*YES)                        

Yep, creating workfiles in QTEMP and with 80 concurent user this will happen 100's of times per day.
So if I should change the value SRCFILE parameter from QDDSSRC to QDBSRC, all programs that are creating files will end in an error.

Regards.
Avatar of kouthe

ASKER

I better be sure... and don't experiment to much.. So the way murphy2 says sound convinced.

Thanks guys