CHKLNK

page d'accueil
Boite à outils

Cette page a été mise à jour le 14 septembre 2009
Contact

Welcome page
Tools box

Versionning 

last version : How to upload to my 400


CHECK OBJECT LINK (CHKLNK) Indiquez vos choix, puis appuyez sur ENTREE. object to check . . . . . . . . > '/qsys.lib/lamontre.lib/qpgmsrc.file/chklnk.
mbr' Check for authority . . . . . . *EXISTS *EXISTS, *R, *RW, *RWX...
CHKLNK OBJ('/qsys.lib/lamontre.lib/qpgmsrc.file/chklnk.mbr')
No such path or directory.

CHGVAR VAR(&IFSNAME) VALUE('/' *CAT &IFSROOT) CHKLNK OBJ(&IFSNAME) MONMSG ...
CHGPFM FILE(JPLTOOLS) MBR(CHKLNK) SRCTYPE(CMD) EXPDATE(*NONE) SHARE(*NO) TEXT('check existence of an IFS link ') 
CHGPFM FILE(JPLTOOLS) MBR(CHKLNKR) SRCTYPE(RPGLE) EXPDATE(*NONE) SHARE(*NO) TEXT('check existence of an IFS link ') 
CRTCMD CMD(CHKLNK) PGM(*LIBL/CHKLNKR) SRCFILE(JPLTOOLS) SRCMBR(CHKLNK) REPLACE(*YES) 
CRTRPGMOD MODULE(CHKLNKR) SRCFILE(JPLTOOLS) OPTION(*NODEBUGIO *SRCSTMT *SHOWCPY *SECLVL *EXPDDS) DBGVIEW(*ALL) REPLACE(*YES) TGTRLS(V5R3M0) ENBPFRCOL(*FULL) 

CRTPGM PGM(CHKLNKR) BNDDIR(QC2LE JPLTOOLS) ACTGRP(JPLTOOLS) OPTION(*DUPPROC) TGTRLS(V5R3M0)
CHKLNK tool is able to check if an IFS file or directory exists. This  version is low expensive in ressources, based on api ACCESS

If the file to check exists, CHKLNK do nothing

otherwise it returns a CPE3025 message that you can MONMSG


The source code is provided as an open source tool under the GNU General Public License, version 2.  In summary, this license specifies:

By clicking the download link you acknowledge and agree to the terms of the license.

Download the (zipped) SAVF containing the JPLTOOLS : the source file, the message file, the bnddir

THIS TOOLBOX IS PROVIDED ''AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PROVIDER OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS TOOLBOX, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.