CICS创建SFS、CICS region 命令 以及定义MQ 队列 命令

之前,应客户要求,提供一些CICS ,MQ的常用命令,现记录如下:
#mq 队列参数查看命令:
display queue (Q) ALL
# mq 队列创建命令(指定参数)
DEFINE QLOCAL(Q) DESCR(TEST) MAXDEPTH(50000) USAGE(NORMAL)
IBM CICS的命令很强大,两个命令就可以完全满足cics region 的定义属性与文件的 导出、导入、备份、恢复、迁移、重建。

如下所示:

###从源机器导出region 属性定义文件

[root@ibmtest cics]# cicsexport -r ‘test01’ -o ‘test01bak’
ERZ046338I/0420: Successfully exported region ‘test01’

###在目标机器(测试环境)导入region 属性定义文件

[root@ibmtest cics]# cicsimport -r ‘test02’ -i ‘test01bak’
ERZ046348I/0427: Creating region ‘test02’ from archive ‘/opt/ibm/cics/test01bak’
ERZ010114I/0728: Creating subsystem ‘cics.test02’ for region ‘test02’
ERZ046339I/0421: Successfully imported region ‘test02’

冷启动Test02 Region
[root@ibmtest ~]# cicscp -v start region test02 StartType=cold
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096122I/0264: Processing the ‘start region’ command.
ERZ096158I/0264: The region ‘test02’ is starting.
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ibmtest’.
ERZ038214I/0168: Authorization for server ‘/.:/cics/sfs/ibmtest’ has been set to ‘none’
ERZ105102I/0029: Restart files located for server ‘/.:/cics/sfs/ibmtest’
ERZ105107I/0034: Archives directory located for server ‘/.:/cics/sfs/ibmtest’
ERZ038216I/0175: Subsystem ‘cicssfs.Sibmtest’ has been initialized.
ERZ038272I/0157: Waiting for server ‘/.:/cics/sfs/ibmtest’ to initialise.
ERZ038219I/0179: Server ‘/.:/cics/sfs/ibmtest’ is responding to RPCs.
ERZ038228I/0189: Server ‘/.:/cics/sfs/ibmtest’ has been enabled.
ERZ038182I/0182: Server ‘/.:/cics/sfs/ibmtest’ started successfully.
ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/ibmtest’ successfully started.
ERZ038216I/0382: Subsystem ‘test02’ has been initialized.
ERZ038219I/0390: Server ‘test02’ is responding to RPCs.
ERZ096126I/0276: Region ‘test02’ has successfully started.
ERZ096002I/0003: The cicscp command has completed successfully.
[root@ibmtest ~]#

#创建sfs服务器
cicscp -v create sfs_server /.:/cics/sfs/evantest

# 启动sfs服务器
cicscp -v start sfs_server evantest

# 停止sfs服务器
cicscp -v stop sfs_server evantest

#冷启动sfs服务器
cicscp -v start sfs_server evantest StartType=cold

#新建region
cicscp -v create region evan001 DefaultFileServer=/.:/cics/sfs/evantest

#冷启动region
cicscp -v start region evan001 StartType=cold

#停止region
cicscp -v stop region evan001

#创建qm 队列管理器
crtmqm qm

#查看mq 队列管理器运行状态
dspmq

#如果MQ队列管理器没有运行,启动MQ队列管理器
strmqm qm

#停止qm 队列管理器
endmqm qm

#删除qm队列管理器
dltmqm qm

#运行 队列管理器命令操作界面

runmqsc qm

#创建本地队列Q
DEFINE   QLOCAL (Q)

# 显示本地队列Q 属性
display qlocal (Q) all

#将本地队列Q 的最大深度设置为5
ALTER QLOCAL (Q) MAXDEPTH(5)
#重新创建本地队列Q 如果Q已经存在,则将其全部属性重置为缺省属性

以下文章点击率最高

Loading…

发表评论