星期二, 10月 03, 2023

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

Configuring an IBM MQ queue manager to use a dedicated Listener, Channel and Queue in Linux
The chapters are:
Chapter 1: User "root" adds the proper user and group in both hosts
  User "fulano" is not an MQ administrator, and will be allowed to put/get messages.
  User "bob" is not an MQ administrator, and will NOT be allowed to put/get messages.
Chapter 2: MQ administrator (user "mqm") creates a queue manager with the basic/normal objects in host-1
Chapter 3: MQ administrator adds the dedicated objects.
Chapter 4: User "fulano" from host-2 puts and gets messages using the dedicated objects.
Chapter 5: User "fulano" from host-2 uses runmqsc to look at CURDEPTH on MY.Q
Chapter 6: User "bob" from host-2 fails to put/get messages using the dedicated objects
.
The dedicated objects are:
- Listener (such as MY.LISTENER in port 1420)
- Server-Connection Channel (such as MY.CHANNEL)
- Queue in Linux (such as MY.Q)
- Channel Authentication Record (CHLAUTH) for this server-connection channel that allows only the user "fulano" who is a member of the group "mqusers".
- Authority records for group "mqusers" to display, put, get, browse, etc. from the dedicated queue.


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/


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.

Presentation

RedBook



IBM i Access - Client Solutions (ACS)



IBM i (AS400) Access Client Solutions (ACS) 連線軟體,從 V7R1 後取代舊版 Client Access,是一套 Java 的套件,所以執行的機器需要安裝 Java runtime 8.0 以上的版本,才可以使用 ACS。

下載 ACS (需要有 IBM id,可以直接註冊)






星期一, 10月 02, 2023

What's New with Db2 for i 7.5

 https://db2ibmi.blogspot.com/2022/05/whats-new-with-db2-for-i-75.html

IBM i 7.5 announcement

Announcements 7.5 TR1 / 7.4 TR7

Announcements 7.5 TR2 / 7.4 TR8

Jump-start your SQL Development with new ACS SQL Generators

 https://db2ibmi.blogspot.com/2023/09/jump-start-your-sql-development-with.html




Sample Program to List Lock Information for IFS Objects

https://www.ibm.com/support/pages/sample-program-list-lock-information-ifs-objects

Command source: Command name WRKLCK.

CMD
PARM       KWD(PATH) TYPE(*CHAR) LEN(500)            


RPGLE source: Program name WRKLCK

Dspaceloc         S              3P 0                                                          
 DPATH             S            500                                                            
 DCMD              S           1024    INZ(' ')                                                
 DQUOTE            S              1    INZ('''')                                                
 DCMDL             S             15  0 INZ(1024)                                                
 DQCMDEXC          PR                  EXTPGM('QCMDEXC')                                        
 DCMD                          1024A   OPTIONS(*VARSIZE) CONST                                  
 DCMDL                           15p 5 CONST                                                    

 C     *ENTRY        PLIST                                                                      
 C                   PARM                    PATH                                              
 C*                  PARM                    RTN                                                

  /FREE                                                                                        
     spaceloc = %scan(' ':path);                                                                
     path = %subst(path:1:spaceloc);                                                            
     cmd='CALL QP0FPTOS PARM(*LSTOBJREF '+ QUOTE + %trim(path) + QUOTE + ' +                    
            *FORMAT2)';                                                                        
    QCMDEXC (CMD : %SIZE(CMD));                              
    *INLR = *ON;                                              
 /END-FREE

星期三, 4月 27, 2011

Use Ops Navigator to determine if the system is advising new access paths

You can use Ops Navigator to determine if the system is advising new access paths, look for combinations of high costs and frequency. This little SQL can show those suggested since last IPL

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

iSeries Experience Report: Subsystem configuration

iSeries Experience Report: Subsystem configuration

IBM - Host Server Customization Requirements for TCP/IP Address and Subnet Mask

IBM - Host Server Customization Requirements for TCP/IP Address and Subnet Mask

Assigning Prestart Jobs to a Specific Pool

IBM i Support: Software Technical Document : 392581292
Document Title
Assigning Prestart Jobs to a Specific Pool

星期四, 4月 07, 2011

What's New in RPG for V6R1

May 2009

What’s New in RPG for V6R1

Barbara Morris, the lead developer for the WDS compilers in the IBM Toronto Lab

星期一, 2月 14, 2011

Threading in C# - Free E-book

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

星期四, 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.

星期三, 10月 13, 2010

星期二, 10月 12, 2010

Boîte à outils jpltools

Boîte à outils

Send a Mime Mail MAIL

OBJUNLCK

Cleanup old spools

星期五, 9月 24, 2010

MI - Test Bit in String (TSTBTS)

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月 06, 2010

AS/400 Security AS/400 Services AS/400 security Software AS/400 Training, System i and iSeries Security and iSeries Audit Services and Security Software

AS/400 Security AS/400 Services AS/400 security Software AS/400 Training, System i and iSeries Security and iSeries Audit Services and Security Software

QlgTransformUCSData()--Transform UCS Data API

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.

Practical RPG: Initialization Made Easy | RPG

Practical RPG: Initialization Made Easy | RPG

TechTip: Simplify Your Development with DB2 Automatic Timestamp Support | Database

TechTip: Simplify Your Development with DB2 Automatic Timestamp Support | Database

星期一, 8月 16, 2010

星期一, 8月 09, 2010

星期四, 5月 22, 2008

Home

Using the QAQQINI File

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)

星期六, 9月 29, 2007

星期五, 9月 14, 2007

Output Queue Monitor(OutqMon or MONOUTQ)

The Learning Center Store == Starter Kit for the IBM iSeries and AS/400
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

Passing a list/array to SQL Server stored procedure : Narayana Vyas Kondreddi's home page

Passing a list/array to SQL Server stored procedure : Narayana Vyas Kondreddi's home page

星期四, 8月 30, 2007

予晴之見 - 知人之道

予晴之見 - 知人之道

【古文】諸葛亮的知人之道

夫知人之性,莫難察焉。美惡既殊,情貌不一。
有溫良而為詐者,有外恭而內欺者,有外勇而內怯者,
有盡力而不忠者。

然知人之道有七焉:
一曰,間之以是非而觀其志;
二曰,窮之以辭辯,而觀其變;
三曰,咨之以計謀,而觀其識;
四曰,告之以禍難,而觀其勇;
五曰,醉之以酒,而觀其性;
六曰,臨之以利,而觀其廉;
七曰,其之以事,而觀其信。
三國‧蜀漢‧諸葛亮《將苑‧知人性篇》

星期四, 7月 26, 2007

Help -

Help -
The IBM WebSphere MQ information center contains the documentation for WebSphere MQ Version 6.0.

Capitalware's WebSphere MQ Info Center Page

Capitalware's WebSphere MQ Info Center Page

Best Practices: WebSphere MQ shared queues and application programs

Best Practices: WebSphere MQ shared queues and application programs

IBM DB2 for i5/OS - Support Information

IBM DB2 for i5/OS - Support Information

V4R5 Exit Points for CL Commands | i5 | IBM Systems Magazine

V4R5 Exit Points for CL Commands | i5 | IBM Systems Magazine

A New Day for CL | i5 | IBM Systems Magazine

A New Day for CL | i5 | IBM Systems Magazine

V5R4 Introduces Subroutines for CL | i5 | IBM Systems Magazine

V5R4 Introduces Subroutines for CL | i5 | IBM Systems Magazine

Encrypted Printing via Internet Printing Protocol | i5 | IBM Systems Magazine

Encrypted Printing via Internet Printing Protocol | i5 | IBM Systems Magazine

Distributed Queue Management in WebSphere MQ | i5 | IBM Systems Magazine

Distributed Queue Management in WebSphere MQ | i5 | IBM Systems Magazine

WebSphere MQ Clustering Configuration Tips | i5 | IBM Systems Magazine

WebSphere MQ Clustering Configuration Tips | i5 | IBM Systems Magazine