A blog about IBM i (AS/400), MQ and other things developers or Admins need to know.
星期三, 10月 04, 2023
Get IFS file stat() epoch to RPG timestamps
STATPGM.RPGLE
000001160318 /* THE INFORMATION CONTAINED IN THIS DOCUMENT HAS NOT BEEN SUBMITTE D */
000002160318 /* TO ANY FORMAL TESTS AND IS DISTRIBUTED ON AN 'AS IS' BASIS */
000003160318 /* WITHOUT ANY WARRANTY EITHER EXPRESSED OR IMPLIED. THE USE OF THI S */
000004160318 /* INFORMATION OR THE IMPLEMENTATION OF ANY OF THESE TECHNIQUES IS A */
000005160318 /* CUSTOMER RESPONSIBILITY AND DEPENDS ON THE CUSTOMER'S ABILITY TO */
000006160318 /* EVALUATE AND INTEGRATE THEM INTO THE CUSTOMER'S OPERATION */
000007160318 /* ENVIRONMENT. WHILE EACH ITEM MAY HAVE BEEN REVIEWED BY IBM */
000008160318 /* FOR ACCURACY IN A SPECIFIC SITUATION, THERE IS NO GUARANTEE THAT THE */
000009160318 /* SAME OR SIMILAR RESULTS WILL BE OBTAINED ELSEWHERE. CUSTOMERS */
000010160318 /* ATTEMPTING TO ADAPT THESE TECHNIQUES TO THEIR ENVIRONMENTS DO SO */
000011160318 /* AT THEIR OWN RISK. */
000012160317 // ----------------------------------------------------------------------
000100160317 Ctl-Opt DFTACTGRP(*NO) ACTGRP(*NEW);
000101160317 // *********************************************************************
000102160317 // File Information Structure (stat)
000103160317 //
000104160317 // struct stat {
000105160317 // mode_t st_mode; /* File mode */
000106160317 // ino_t st_ino; /* File serial number */
000107160317 // nlink_t st_nlink; /* Number of links */
000108160317 // uid_t st_uid; /* User ID of the owner of file */
000109160317 // gid_t st_gid; /* Group ID of the group of file */
000110160317 // off_t st_size; /* For regular files, the file
000111160317 // * size in bytes */
000112160317 // time_t st_atime; /* Time of last access */
000113160317 // time_t st_mtime; /* Time of last data modification */
000114160317 // time_t st_ctime; /* Time of last file status change */
000115160317 // dev_t st_dev; /* ID of device containing file */
000116160317 // size_t st_blksize; /* Size of a block of the file */
000117160317 // unsigned long st_allocsize; /* Allocation size of the file */
000118160317 // qp0l_objtype_t st_objtype; /* AS/400 object type */
000119160317 // unsigned short st_codepage; /* Object data codepage */
000120160317 // char st_reserved1[66]; /* Reserved */
000121160317 // };
000122160317 //
000123160317 Dcl-S p_statds Pointer;
000124160317 Dcl-Ds statds BASED(p_statds);
000125160317 st_mode Uns(10);
000126160317 st_ino Uns(10);
000127160317 st_nlink Uns(5);
000128160317 st_pad Char(2);
000129160317 st_uid Uns(10);
000130160317 st_gid Uns(10);
000131160317 st_size Int(10);
000132160317 st_atime Int(10);
000133160317 st_mtime Int(10);
000134160317 st_ctime Int(10);
000135160317 st_dev Uns(10);
000136160317 st_blksize Uns(10);
000137160317 st_alctize Uns(10);
000138160317 st_objtype Char(12);
000139160317 st_codepag Uns(5);
000140160317 st_resv11 Char(62);
000141160317 st_ino_gen_id Uns(10);
000142160317 End-Ds;
000143160317
000144160317 // --------------------------------------------------------------------
000145160317 // Get File Information
000146160317 //
000147160317 // int stat(const char *path, struct stat *buf)
000148160317 // --------------------------------------------------------------------
000149160317 Dcl-Pr stat Int(10) ExtProc('stat');
000150160317 path Pointer value options(*string);
000151160317 buf Pointer value;
000152160317 End-Pr;
000153160317
000154160317 Dcl-Pr GetTimeZone Char(5) End-Pr;
000155160317
000156160317 Dcl-Ds timezone;
000157160317 tzDir Char(1);
000158160317 tzHour Zoned(2:0);
000159160317 tzFrac Zoned(2:0);
000160160317 End-Ds;
000161160317
000162160317
000163160317 Dcl-S statsize Int(10);
000164160317 Dcl-S Msg Char(50);
000165160317 Dcl-S AccessTime TimeStamp;
000166160317 Dcl-S ModifyTime TimeStamp;
000167160317 Dcl-S ChgStsTime TimeStamp;
000168160317 Dcl-S charTS Char(26);
000169160317 Dcl-S Epoch TimeStamp INZ(z'1970-01-01-00.00.00');
000170160317 // Prototype for QWCRSVAL
000171160317 Dcl-Pr Pgm_QWCRSVAL ExtPgm('QWCRSVAL');
000172160317 peRcvVar Char(1) Dim(100);
000173160317 peRVarLen Int(10);
000174160317 peNumVals Int(10);
000175160317 peSysValNm Char(10);
000176160317 dsErrCode Char(256);
000177160317 End-Pr;
000178160317
000179160317 *inlr = *on;
000180160317
000181160317 statsize = %size(statds);
000182160317 p_statds = %Alloc(statsize);
000183160317
000184160317 If stat('/temp/jt400.jar': p_statds) < 0;
000185160317 Msg = 'stat() failed? Check errno!';
000186160317 // ...--> dsply Msg
000187160317 c dsply Msg
000188160317 Return;
000189160317 EndIf;
000190160317
000191160317 // * times in statds are seconds from the "epoch" (Jan 1, 1970)
000192160317 // * and are in GMT (Greenwich Mean Time)...
000193160317 // * Hey! Lets convert them to RPG timestamps!
000194160317 AccessTime = Epoch + %Seconds(st_atime);
000195160317 ModifyTime = Epoch + %Seconds(st_mtime);
000196160317 ChgStsTime = Epoch + %Seconds(st_ctime);
000197160317
000198160317 // * adjust timestamps for timezone:
000199160317 timezone = GetTimeZone;
000200160317 If tzDir = '-';
000201160317 AccessTime -= %Hours(tzHour);
000202160317 ModifyTime -= %Hours(tzHour);
000203160317 ChgStsTime -= %Hours(tzHour);
000204160317 Else;
000205160317 AccessTime += %Hours(tzHour);
000206160317 ModifyTime += %Hours(tzHour);
000207160317 ChgStsTime += %Hours(tzHour);
000208160317 EndIf;
000209160317
000210160317 // display the relevant times:
000211160317 charTS = %Char(AccessTime);
000212160317 Msg = 'Last Access ' + charTS;
000213160317 // ...--> dsply Msg
000214160317 c dsply Msg
000215160317
000216160317 charTS = %Char(ModifyTime);
000217160317 Msg = 'Last Modified ' + charTS;
000218160317 // ...--> dsply Msg
000219160317 c dsply Msg
000220160317
000221160317 charTS = %Char(ChgStsTime);
000222160317 Msg = 'Status Changed ' + charTS;
000223160317 // ...--> dsply Msg
000224160317 c dsply Msg
000225160317
000226160317 DeAlloc p_statds;
000227160317 *inlr = *on;
000228160317
000229160317
000230160317 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
000231160317 // This gets the offset from Universal Coordinated Time (UTC)
000232160317 // from the system value QUTCOFFSET
000233160317 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
000234160317 Dcl-Proc GetTimeZone;
000235160317 Dcl-Pi GetTimeZone Char(5) End-Pi;
000236160317 Dcl-S peRcvVar Char(1) DIM(100);
000237160317 Dcl-S peRVarLen Int(10);
000238160317 Dcl-S peNumVals Int(10);
000239160317 Dcl-S peSysValNm Char(10);
000240160317 Dcl-S p_Offset Pointer;
000241160317 Dcl-S wkOffset Int(10) BASED(p_Offset);
000242160317 Dcl-S p_SV Pointer;
000243160317 Dcl-Ds dsSV BASED(p_SV);
000244160317 dsSVSysVal Char(10);
000245160317 dsSVDtaTyp Char(1);
000246160317 dsSVDtaSts Char(1);
000247160317 dsSVDtaLen Int(10);
000248160317 dsSVData Char(5);
000249160317 End-Ds;
000250160317 Dcl-Ds dsErrCode;
000251160317 dsBytesPrv BinDec(9:0) Pos(1) INZ(256);
000252160317 dsBytesAvl BinDec(9:0) Pos(5) INZ(0);
000253160317 dsExcpID Char(7) Pos(9);
000254160317 dsReserved Char(1) Pos(16);
000255160317 dsExcpData Char(240) Pos(17);
000256160317 End-Ds;
000257160317 peRVarLen = 100;
000258160317 peNumVals = 1;
000259160317 peSysValNm = 'QUTCOFFSET';
000260160317 CallP(e) Pgm_QWCRSVAL(peRcvVar : peRVarLen :
000261160317 peNumVals : peSysValNm : dsErrCode);
000262160317 *In99 = %Error;
000263160317 If dsBytesAvl > 0 or *IN99 = *On;
000264160317 Return *blanks;
000265160317 EndIf;
000266160317 p_Offset = %addr(peRcvVar(5));
000267160317 p_SV = %addr(peRcvVar(wkOffset+1));
000268160317 Return dsSVData;
000269160317 End-Proc;
Change DDMF from Type SNA to IP
DDMCL.CLLE
000100161214/***************LICENSE AND DISCLAIMER*****************************************/
000101161214/* This material contains IBM copyrighted sample programming source code. */
000102161214/* IBM grants you a nonexclusive license to use, execute, display, */
000103161214/* reproduce, distribute and prepare derivative works of this sample code. */
000104161214/* The sample code has not been thoroughly tested under all conditions. IBM, */
000105161214/* therefore, does not warrant or guarantee its reliability, serviceablity, */
000106161214/* or function. All sample code contained herein is provided to you "AS IS." */
000107161214/* ALL IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO THE IMPLIED */
000108161214/* WARRANTIES OF MERCHANTABILLITY AND FITNESS FOR A PARTICULAR PURPOSE, */
000109161214/* ARE EXPRESSLY DISCLAIMED. */
000110161214/* */
000111161214/* make sure to run this before compiling - CRTPF FILE(QTEMP/DDM1) RCDLEN(133)*/
000112161214
000113161214
000114161214 PGM PARM(&LIBNAM)
000115161214 DCL VAR(&LIBNAM) TYPE(*CHAR) LEN(10)
000116161214 DCL VAR(&COUNT) TYPE(*char) LEN(11)
000117161214 DCL VAR(&SNA) TYPE(*CHAR) LEN(37) VALUE('Type . . . . . . . . . . . . : +
000118161214 *SNA')
000119161214 DCL &MSGDTA *CHAR 132 /* Message Data */
000120161214 DCL &MSGF *CHAR 10 /* Message File */
000121161214 DCL &MSGFLIB *CHAR 10 /* Message File Library */
000122161214 DCL &MSGID *CHAR 7 /* ID of any Error Msg rcvd. */
000123161214
000124161214 DCLF FILE(QSYS/QADSPOBJ) RCDFMT(*ALL) OPNID(DSPJOB)
000125161214 DCLF FILE(QTEMP/DDM1) RCDFMT(*ALL) OPNID(DDM1)
000126161214
000127161214 MONMSG CPF0000 EXEC(GOTO Error)
000128161214 CHKOBJ OBJ(QSYS/&LIBNAM) OBJTYPE(*LIB)
000129161214 MONMSG MSGID(CPF9801) CMPDTA(*NONE) EXEC(GOTO ERR)
000130161214
000131161214 DLTF FILE(QTEMP/ddm1)
000132161214 MONMSG MSGID(CPF0000)
000133161214 CRTPF FILE(QTEMP/DDM1) RCDLEN(133)
000134161214
000135161214 DLTF FILE(QTEMP/QADSPOBJ)
000136161214 MONMSG MSGID(CPF0000)
000137161214
000138161214 DSPOBJD OBJ(&LIBNAM/*ALL) OBJTYPE(*FILE) DETAIL(*SERVICE) OUTPUT(*OUTFILE) +
000139161214 OUTFILE(QTEMP/QADSPOBJ)
000140161214 OVRDBF FILE(QADSPOBJ) TOFILE(QTEMP/QADSPOBJ)
000141161214/* REXX script queries outfile */
000142161214/* and counts the number of records that will be processed */
000143161214/* REXX cannot pass back parm values - using LDA to store the the SQL count */
000144161214 STRREXPRC SRCMBR(REXDDMX) SRCFILE(BIMBRA/QREXSRC)
000145161214 RTVDTAARA DTAARA(*LDA (1 11)) RTNVAR(&COUNT)
000146161214 CHGVAR VAR(&COUNT) VALUE(%TRIML(&COUNT ' +'))
000147161214 SNDPGMMSG MSG('Total number of ddm files to process:' *BCAT &COUNT)
000148161214
000149161214 READ: RCVF DEV(*FILE) OPNID(DSPJOB) /* Read entire file */
000150161214 MONMSG MSGID(CPF0864) EXEC(GOTO EOJ) /* EOF - exit */
000151161214
000152161214 IF COND(&DSPJOB_ODOBAT = 'DDMF ') THEN(DO)
000153161214 DSPDDMF FILE(&LIBNAM/&DSPJOB_ODOBNM) OUTPUT(*PRINT)
000154161214 CPYSPLF FILE(QPDSPDDM) TOFILE(QTEMP/DDM1) SPLNBR(*LAST) +
000155161214 JOBSYSNAME(*CURRENT) CRTDATE(*LAST) MBROPT(*REPLACE) +
000156161214 CTLCHAR(*NONE)
000157161214 DLTSPLF FILE(QPDSPDDM) SPLNBR(*LAST) JOBSYSNAME(*CURRENT) CRTDATE(*ONLY)
000158161214 READDDM: RCVF DEV(*FILE) OPNID(DDM1)
000159161214 MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(EOJDDM)) /* EOF - exit */
000160161214 IF COND(%SST(&DDM1_DDM1 9 37) *EQ &SNA) THEN(DO)
000161161214 CHGDDMF FILE(&LIBNAM/&DSPJOB_ODOBNM) RMTLOCNAME(*SAME *IP)
000162161214 SNDPGMMSG MSG('Switched SNA to IP for file ' *cat &DSPJOB_ODOBNM)
000163161214 ENDDO
000164161214 GOTO CMDLBL(READDDM)
000165161214
000166161214 EOJDDM: CLOSE OPNID(DDM1)
000167161214 ENDDO
000168161214 GOTO CMDLBL(READ)
000169161214 EOJ: RETURN /* Normal End-of-Job */
000170161214 ERR: SNDPGMMSG MSG('Library not found:' *CAT &LIBNAM)
000171161214 ERROR: RCVMSG MSGTYPE(*EXCP) MSGDTA(&MSGDTA) MSGID(&MSGID) MSGF(&MSGF) +
000172161214 MSGFLIB(&MSGFLIB)
000173161214 SNDPGMMSG MSGID(&MSGID) MSGF(&MSGFLIB/&MSGF) MSGDTA(&MSGDTA) MSGTYPE(*ESCAPE)
000174161214 ENDPGM
REXDDM.REXX
000100161213T = 0 000200150430ADDRESS EXECSQL 000300150501Execsql "set option commit=*none, naming=*sys;" 000400161209MyStmt1 = "SELECT count(ODOBAT) FROM qtemp.QADSPOBJ WHERE ODOBAT = 'DDMF'" 000500150501Execsql "declare c1 cursor for s2;" 000600150501Execsql "prepare s2 from :MyStmt1;" 000700150501Execsql "open c1;" 000800161209Execsql "fetch c1 into :T;" 000900150501Execsql "close c1;" 001000161209ADDRESS '*COMMAND' 001100161213'CHGDTAARA DTAARA(*LDA (1 11)) VALUE(&T)' 001200150430EXIT
星期二, 10月 03, 2023
MQ Ansible
mq-ansible
https://github.com/ibm-messaging/mq-ansible
MQ Ansible YAML Commands Collection
https://community.ibm.com/community/user/integration/blogs/mayur-raja1/2023/05/22/mq-ansible-yaml-commands-collection
Configuring an IBM MQ queue manager to use a dedicated Listener, Channel and Queue in Linux
https://www.ibm.com/support/pages/node/1135522
Configuring MQ to use a dedicated Listener, Channel and Queue in Linux_2.pdf
Power IBM i collection for Ansible
Start with RedHat Ansible on IBM i
https://builtonpower.com/2023/09/start-with-redhat-ansible-on-ibm-i/
- Installing Ansible — Ansible Documentation
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html - Modules — IBM power_ibmi collection 1.0.0 documentation
https://ibm.github.io/ansible-for-i/modules.html
Ansible support for IBM i
https://www.ibm.com/support/pages/node/1167538
Ansible Galaxy
https://galaxy.ansible.com/ui/repo/published/ibm/power_ibmi/content/
https://ibm.github.io/ansible-for-i/index.html
Automate your IBM i tasks with Ansible
https://github.com/IBM/ansible-for-i
Dependencies on IBM i node:
5733SC1 Base and Option 1
5770DG1
python3
python3-itoolkit
python3-ibm_db
https://public.dhe.ibm.com/services/us/igsc/ansible/
Below 2 lab guides that can be used for self-training.
These examples focus on some of the IBM i ansible modules available on GitHub and ansible Galaxy (community support), and Red Hat Ansible Collection (Red Hat supported). The ansible control node can be IBM i (IBM Open Source support option) or Linux (Red Hat support with subscriptions). On top, ansible AWX (free) or Red Hat Ansible Automation Platform (AAP) is a good solution for ansible access control, audit logs, etc. (mentioned in Lab #2).
These materials can help you get started quicker, but do not replace the official ansible and 'ansible for IBM i' documentation.
- Lab#1 Ansible and IBM i : Introduction Lab (Feb 2023)
- Lab#2 PTF Management with Ansible (Feb 2023)
Presentation
RedBook
IBM i Access - Client Solutions (ACS)
星期一, 10月 02, 2023
Sample Program to List Lock Information for IFS Objects
星期四, 11月 03, 2011
星期二, 10月 11, 2011
星期三, 5月 18, 2011
星期六, 5月 14, 2011
星期三, 4月 27, 2011
Use Ops Navigator to determine if the system is advising new access paths
Code:
SELECT DBNAME as Library,
SYS_TNAME as File,
decimal(timesadv,6) as Advised,
date(lastadv) as Last_Adv,time(lastadv) as Time_Adv,
decimal(querycost,6) as Cost,
decimal(queryest,6) as Avg_Cost,
decimal(mticreated,6) as MTI_Create,
date(lastmtiuse) as MTI_LastUsed,
substr(KEYSADV,1,40) as Keys_Advised,
substr(leadkeys,1,40) as Key_Order
FROM qsys2/sysixadv
where mticreated > 0
ORDER BY queryest DESC
星期五, 4月 22, 2011
星期四, 4月 07, 2011
What's New in RPG for V6R1
What’s New in RPG for V6R1
Barbara Morris, the lead developer for the WDS compilers in the IBM Toronto Lab
星期三, 3月 09, 2011
星期六, 3月 05, 2011
星期五, 3月 04, 2011
星期一, 2月 14, 2011
Threading in C# - Free E-book
Part 1 Getting Started
Part 2 Basic Synchronization
Part 3 Using Threads
Part 4 Advanced Threading
Part 5 Parallel Programming
星期五, 1月 07, 2011
星期三, 12月 15, 2010
星期日, 12月 12, 2010
星期五, 12月 10, 2010
星期四, 12月 09, 2010
星期五, 12月 03, 2010
星期四, 12月 02, 2010
How to find out indexes created or used during the execution of an SQL statement
Two methods as following:
1. Visual Explain tool, through iSeries Navigator.
2. - chgjob (4 0) *seclvl logclpgm(*yes)
- strdbg
- run your sql statement from interactive sql400
- quit sql400
- enddbg
and watch the joblog to see which indexes where used/built.
星期三, 12月 01, 2010
星期三, 10月 13, 2010
星期二, 10月 12, 2010
星期三, 9月 29, 2010
星期五, 9月 24, 2010
MI - Test Bit in String (TSTBTS)
RPGLE SAMPLE CODE:
H Option( *SrcStmt ) BndDir( 'QC2LE' )
**-- Test bit in string:
D tstbts Pr 10i 0 ExtProc( 'tstbts' )
D string * Value
D bitofs 10u 0 Value
D testStr S 4
D bitOffset c 30
D result S 10i 0
/Free
result = tstbts( %Addr( testStr ) : bitOffset );
dsply result;
/End-Free
星期四, 9月 16, 2010
星期一, 9月 06, 2010
QlgTransformUCSData()--Transform UCS Data API
The QlgTransformUCSData() function transforms, through a formula as compared to a mapping, data from one form of Unicode to another. A transformation type identification is used to specify the type of transformation.
Usage Notes:
1. When requesting a BOM tagged output buffer the following BOM values will be generated.
BOMS Hex values
UTF-32 BE (020) 00 00 FE FF
UTF-32 LE (030) FF FE 00 00
UTF-16 BE (040) FE FF
UTF-16 LE (050) FF FE
UTF-8 (060) EF BB BF
A sample conversion:
transformation type: 030021
UTF-32 LE (030) -> UTF-32 BE marked (021)
x'AB 5F 00 00 7C 8E 00 00' -> x'00 00 FE FF 00 00 5F AB 00 00 8E 7C'
2. Auto detection is available when there is a BOM in the beginning of the inbuf that represents a Unicode type.
星期一, 8月 16, 2010
星期二, 8月 10, 2010
星期一, 8月 09, 2010
星期四, 7月 15, 2010
星期五, 8月 28, 2009
星期五, 7月 24, 2009
APIs by Example: Validation List Commands (ADDVLDLE, VFYVLDLE, CHGVLDLE, RMVVLDLE, WRKVLDL, CLRVLDL)| System iNetwork
星期二, 9月 02, 2008
星期三, 6月 18, 2008
Technical Document : 28942837 Receiving Messages from the Joblog after the Program Is off the Callstack
星期五, 6月 13, 2008
星期三, 5月 28, 2008
星期一, 5月 26, 2008
星期四, 5月 22, 2008
WebSphere MQ Clustering Configuration Tips | Business Systems | IBM Systems Magazine
WebSphere MQ Clustering Configuration Tips | Business Systems | IBM Systems Magazine
A, B, C, D, and E: STRSBS SBSD(QMQM/QMQM)
A: CRTMQM MQMNAME(QMGR.A)
A: STRMQM MQMNAME(QMGR.A)
A: STRMQMLSR PORT(1500) MQMNAME(QMGR.A)
A: CHGMQM MQMNAME(QMGR.A) REPOS('SAMPLE.CLUSTER')
A: CRTMQMQ QNAME(CLUSTER.QUEUE) QTYPE(*LCL) MQMNAME(QMGR.A) DEFBIND(*NOTFIXED) CLUSTER('SAMPLE.CLUSTER')
A: CRTMQMCHL CHLNAME(TO.A) CHLTYPE(*CLUSRCVR) MQMNAME(QMGR.A) CONNAME('SYSTEMA.IBM.COM(1500)') DSCITV(0) CLUSTER('SAMPLE.CLUSTER')
A: CRTMQMCHL CHLNAME(TO.B) CHLTYPE(*CLUSSDR) MQMNAME(QMGR.A) CONNAME('SYSTEMB.IBM.COM(1500)') DSCITV(0)
B: CRTMQM MQMNAME(QMGR.B)
B: STRMQM MQMNAME(QMGR.B)
B: STRMQMLSR PORT(1500) MQMNAME(QMGR.B)
B: CHGMQM MQMNAME(QMGR.B) REPOS('SAMPLE.CLUSTER')
B: CRTMQMQ QNAME(CLUSTER.QUEUE) QTYPE(*LCL) MQMNAME(QMGR.B) DEFBIND(*NOTFIXED) CLUSTER('SAMPLE.CLUSTER')
B: CRTMQMCHL CHLNAME(TO.B) CHLTYPE(*CLUSRCVR) MQMNAME(QMGR.B) CONNAME('SYSTEMB.IBM.COM(1500)') DSCITV(0) CLUSTER('SAMPLE.CLUSTER')
B: CRTMQMCHL CHLNAME(TO.A) CHLTYPE(*CLUSSDR) MQMNAME(QMGR.B) CONNAME('SYSTEMA.IBM.COM(1500)') DSCITV(0)
C: CRTMQM MQMNAME(QMGR.C)
C: STRMQM MQMNAME(QMGR.C)
C: STRMQMLSR PORT(1500) MQMNAME(QMGR.C)
C: CRTMQMQ QNAME(CLUSTER.C) QTYPE(*LCL) MQMNAME(QMGR.C) DEFBIND(*NOTFIXED) CLUSTER('SAMPLE.CLUSTER')
C: CRTMQMCHL CHLNAME(TO.C) CHLTYPE(*CLUSRCVR) MQMNAME(QMGR.C) CONNAME('SYSTEMC.IBM.COM(1500)') DSCITV(0) CLUSTER('SAMPLE.CLUSTER')
C: CRTMQMCHL CHLNAME(TO.A) CHLTYPE(*CLUSSDR) MQMNAME(QMGR.C) CONNAME('SYSTEMA.IBM.COM(1500)') DSCITV(0)
D: CRTMQM MQMNAME(QMGR.D)
D: STRMQM MQMNAME(QMGR.D)
D: STRMQMLSR PORT(1500) MQMNAME(QMGR.D)
D: CRTMQMQ QNAME(CLUSTER.D) QTYPE(*LCL) MQMNAME(QMGR.D) DEFBIND(*NOTFIXED) CLUSTER('SAMPLE.CLUSTER')
D: CRTMQMCHL CHLNAME(TO.D) CHLTYPE(*CLUSRCVR) MQMNAME(QMGR.D) CONNAME('SYSTEMD.IBM.COM(1500)') DSCITV(0) CLUSTER('SAMPLE.CLUSTER')
D: CRTMQMCHL CHLNAME(TO.B) CHLTYPE(*CLUSSDR) MQMNAME(QMGR.D) CONNAME('SYSTEMB.IBM.COM(1500)') DSCITV(0)
E: CRTMQM MQMNAME(QMGR.E)
E: STRMQM MQMNAME(QMGR.E)
E: STRMQMLSR PORT(1500) MQMNAME(QMGR.E)
E: CRTMQMQ QNAME(CLUSTER.E) QTYPE(*LCL) MQMNAME(QMGR.E) DEFBIND(*NOTFIXED) CLUSTER('SAMPLE.CLUSTER')
E: CRTMQMCHL CHLNAME(TO.E) CHLTYPE(*CLUSRCVR) MQMNAME(QMGR.E) CONNAME('SYSTEME.IBM.COM(1500)') DSCITV(0) CLUSTER('SAMPLE.CLUSTER')
E: CRTMQMCHL CHLNAME(TO.B) CHLTYPE(*CLUSSDR) MQMNAME(QMGR.E) CONNAME('SYSTEMB.IBM.COM(1500)') DSCITV(0)
星期二, 5月 13, 2008
IBM System i Support: Software Technical Document : 329133089
星期二, 4月 08, 2008
星期一, 10月 29, 2007
星期六, 9月 29, 2007
IBM System i Support: Software Technical Document : 404791135
星期五, 9月 28, 2007
IBM Redbooks | IBM System i | Technotes
http://www.redbooks.ibm.com/Redbooks.nsf/portals/systemiTips
星期五, 9月 14, 2007
Output Queue Monitor(OutqMon or MONOUTQ)
OutqMon (Outq Monitor) utility(MONOUTQ)
| Chapter 11 | A Plug-and-Play Output Queue Monitor | 157 |
| Setting the Stage | 158 | |
| The Output Queue Monitor Utility | 160 | |
| Configuring the Output Queue Monitor | 162 | |
| Using the Output Queue Monitor | 163 | |
| Monitoring Program OutQMon | 164 | |
| Installing the Output Queue Monitor Utility | 165 |
Download the latest version of the Starter Kit source code
星期一, 9月 10, 2007
TechTip: Using Vary Configuration Exit Points on i5/OS - MC Press Online
QIBM_QDC_VRYEXIT exit point (which was introduced in V5R3)
星期一, 9月 03, 2007
星期四, 8月 30, 2007
予晴之見 - 知人之道
【古文】諸葛亮的知人之道
夫知人之性,莫難察焉。美惡既殊,情貌不一。
有溫良而為詐者,有外恭而內欺者,有外勇而內怯者,
有盡力而不忠者。
然知人之道有七焉:
一曰,間之以是非而觀其志;
二曰,窮之以辭辯,而觀其變;
三曰,咨之以計謀,而觀其識;
四曰,告之以禍難,而觀其勇;
五曰,醉之以酒,而觀其性;
六曰,臨之以利,而觀其廉;
七曰,其之以事,而觀其信。
三國‧蜀漢‧諸葛亮《將苑‧知人性篇》
星期四, 8月 23, 2007
星期三, 8月 22, 2007
星期二, 8月 21, 2007
星期一, 7月 30, 2007
星期四, 7月 26, 2007
星期二, 7月 17, 2007
IBM DB2 for i5/OS - What's New
DB2 for i5/OS V5R4 Index Advisors and Autonomic Indexes presentation (1,91 MB) New!
March 27, 2007
The Case of The Missing Index Article New!
May 1, 2007
星期一, 7月 16, 2007
Integrated File System Tools: DEL, DELTREE, CMDALL, CHGAUTALL, CHGOWNALL, QRYIFSLIB, DLTIFSF, RNMIFSF
Getting the Integrated File System Tools to your system
The tools are included in a save file named ifstool.savf which is available at the ftp site, FTP site, public.dhe.ibm.com/services/us/igsc/cs2/ApiSamples/



