× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I agree it would be nice to handle this easier in the workbench.

However, I believe that the REPLACE(*YES) option on CRTxxx commands 
technically means that the original/pre-existing object is moved to the 
QRPLOBJ library.  Then when the CRTxxx command completes successfully, the 
new object is created in the target library.  If the CRTxxx command fails, 
the original object is moved back to the target library.  IIRC PDM's 
handling of the function is different.  PDM asks you to press F11 and 
delete the file.  If the CRTPF file command succeeds, great.  But if it 
fails, you have no file.  This can be challenging if there are logicals 
built over the physical file.

Perhaps some kind of prompt to delete the file could be added to the 
workbench.  But this would make the compile of a PF different than other 
objects.  We've got a utility that renames/moves the original file out of 
the way.  If the CRTPF completes normally, we delete the original.  If the 
CRTPF fails, we rename/move the original back.  Our utility can also 
handle deleting any logicals over the physical.  When invoking it from PDM 
it's easy because we can put up a screen to verify what you want to do, 
but in WDSC it's currently an all-or-nothing approach.

wdsci-l-bounces@xxxxxxxxxxxx wrote on 02/13/2007 01:00:10 PM:

date: Tue, 13 Feb 2007 09:16:12 -0600
from: "Buzz Fenner" <bfenner@xxxxxxxxxxxxxxxx>
subject: Re: [WDSCI-L] Using CRTPF Command in RSE (Vernon Hamberg)

Vern,

In discussing the PDM option, in RSE if you'll drill down
Window\Preferences\Remote Systems\iSeries\Command Execution, notice 
under
Compile Preferences a check box for 'replace object'.  I thought that 
this
would behave similar to the PDM option, but for whatever reason it does 
not.

Buzz Fenner
Systems Analyst/Network Administrator
870.930.3374
mailto:bfenner@xxxxxxxxxxxxxxxx

----------------------------------------------------------------------

message: 1
date: Fri, 09 Feb 2007 19:28:14 -0600
from: Vernon Hamberg <vhamberg@xxxxxxxxxxx
subject: Re: [WDSCI-L] Using CRTPF Command in RSE

Hi Jeff

CrtPF does not have a REPLACE parameter - PDM does that behind the
covers - one of the beauties of the PNLGRP processing of those screens.

Vern




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.