A blog about IBM i (AS/400), MQ and other things developers or Admins need to know.
星期二, 10月 03, 2023
Configuring an IBM MQ queue manager to use a dedicated Listener, Channel and Queue in Linux
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/


