Solved

Command values

Posted on 2001-06-27
8
323 Views
Last Modified: 2008-02-01
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.

0
Comment
Question by:kouthe
  • 4
  • 3
8 Comments
 
LVL 2

Expert Comment

by:olidel
Comment Utility
Hi,

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

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

Bye.
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 100 total points
Comment Utility
No! No! No!

Never change the IBM supplied commands.....

Don't do that....

It is possible (as olidel explained) but

DO NOT DO IT THAT WAY.

WHY????

Reason 1.
-----------------
All the changes that you apply with this commnand are overwritten when you install a new release in of OS/400.


Reason 2.
-----------------
The standard IBM Commands are used by almost all the standard software packages. Without defining all the parameters.
So if you change the Standard IBM Commands, then you have a big chance that you also changing the standard functionality of the standard software (if you have any).

The right way to do it is creating your own command with all the parameters (or only the one that you will use) and pass these parameters to an CL that executes the standard IBM Command.

Example:
-----------
In your case you can create a MYCRTPF or XCRTPF instead of the CRTPF command.

It even must be possible to copy the standard Command and change that with your own default values. But then you can also have a problem with newer releases.

0
 
LVL 2

Expert Comment

by:olidel
Comment Utility
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

0
 
LVL 2

Expert Comment

by:olidel
Comment Utility
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

0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 2

Expert Comment

by:olidel
Comment Utility
Sorry, for the duplicate message, It looks like my browser didn't handle in a correct manner the prvious message.
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
Comment Utility
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
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
Comment Utility
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.
0
 

Author Comment

by:kouthe
Comment Utility
I better be sure... and don't experiment to much.. So the way murphy2 says sound convinced.

Thanks guys
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now