Q
Problem solve Get help with specific problems with your technologies, process and projects.

Copy WRKOUTQ to a "speed key" for a specific Outq

I would like to copy WRKOUTQ to a "speed key" for a specific Outq. I want to duplicate WRKOUTQ PRT03 to make WQ3. I have tried using CRTDUPOBJ and make changes to the default option, but I'm running into a snag. The only default option is *ALL. I've made one for WRKSPLF but not with specific options. Can you help?
I would suggest that you create a simple command using the QCMDEXC API and then passing it a "constant" value, like this:

 
 
/*                                                                     */
/*  CRTCMD CMD(QGPL/WQ3)  PGM(QSYS/QCMDEXC) +                         */
/*    SRCFILE(Your_Srclib/QCMDSRC)                                     */
/*                                                                     */
             CMD        PROMPT('WRKOUTQ PRT03')                        
             PARM       KWD(CMD) TYPE(*CHAR) LEN(20) +                   
                          CONSTANT('wrkoutq outq(prt03)')               
             PARM       KWD(LEN) TYPE(*DEC) LEN(15 5) CONSTANT(20) 

Have any other "shortcuts" you would like to create? Consider using this technique instead of creating duplicate system commands.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: 20 ways to ensure a smooth OS upgrade

This was last published in March 2005

Dig Deeper on i5-OS

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close