CICS 常用命令列表

CICS 常用命令列表

cicscp

说明:CICS 控制程序,可用于创建、删除、启动、停止DCESFS服务器,CICS RegionPPC gateway

eneral cicscp usage:

cicscp [-?|([<common_options>] [<command> <noun_phrase> <specific_options>])]

where common options are:

        -I         – ignore errors

        -l logfile – log progress messages to file

        -v         – produce more verbose output

Specific commands are:

version:

        version

create COBOL:

        create cobol

destroy COBOL:

        destroy cobol

create SNA:

        create sna -d <Control Point Name>

                   -w <Local Network Name>

                   -x <XID Node ID>

                   -y <Link Station Type>

                   [-q <Link Station Name>]

                   [-s <Link Station Address>]

                   [-b <Local Secondary Station Address>]

destroy SNA:

        destroy sna [-f]

start SNA:

        start sna [-f]

stop SNA:

        stop sna [-f]

create telnet server:

        create telnet_server <server> [-P <port>]

                                      [-c <client codeset>]

                                      [-e <emulation>]

                                      [-h <host list>]

                                      [-l <locale>]

                                      [-m <model>]

                                      [-n <netname>]

                                      [-r <region>]

                                      [-s <server codeset>]

                                      [-t <transaction>]

destroy telnet server:

        destroy telnet_server <server> [-f]

create SFS server:

        create sfs_server <server> [-m <model>]

                                   [attribute overrides for SSD stanza]

destroy SFS server:

        destroy sfs_server <server> [-f]

start SFS server:

        start sfs_server <server> [attribute overrides for SSD stanza]

stop SFS server:

        stop sfs_server <server> [-f]

status SFS server:

        status sfs_server <server>

        stop sfs_server all

create PPC gateway server:

        create ppcgwy_server <server> [-m <model>]

                                      [attribute overrides for GSD stanza]

destroy PPC gateway server:

        destroy ppcgwy_server <server> [-f]

start PPC gateway server:

        start ppcgwy_server <server> [attribute overrides for GSD stanza]

stop PPC gateway server:

        stop ppcgwy_server <server> [-f]

status PPC gateway server:

        status ppcgwy_server <server>

        status ppcgwy_server all

create SNA link:

        create sna_link [<Link Station Name>]

                        -y <Link Station Type>

                        [-s <Link Station Address>]

                        [-b <Local Secondary Station Address>]

destroy SNA link:

        destroy sna_link <Link Station Name> -y <Link Station Type>

create region (SFS):

        create region <region> [-g <group-id>]

                               [-i <infile>]

                               [-l <c|m|o|r>]

                               [-d]

create region (DB2):

        create region <region> [-g <group-id>]

                               [-i <infile>]

                               [-l <c|m|o|r>]

                               [-a <alias> -o <instance>

                                [-u <user[,passwd]>] [-n|-s]]

create region (ORACLE):

        create region <region> -o ORACLE

                               [-g <group-id>]

                               [-i <infile>]

                               [-l <c|m|o|r>]

                               [-u <user[/passwd]>] [-n|-s]

destroy region (SFS):

        destroy region <region> [-f] [-s]

destroy region (DB2):

        destroy region <region> [-f] [-s [-u <user[,passwd]>]]

destroy region (ORACLE):

        destroy region <region> [-f] [-s [-u <user[/passwd]>]]

start region:

        start region <region> [-d <distributed servers>]

                              [attribute overrides for RD stanza]

stop region:

        stop region <region> [(-c | -f)]

status region:

        status region <region>

        status region all

destroy all:

        destroy all [-f]

start all:

        start all

stop all:

        stop all

status all:

        status all

使用举例:

5.1版本以前:

创建DCE

cicscp –v create dce -R

删除DCE:

cicscp -v destroy dce

创建Region:

cicscp -v create region CICSRGN1

启动SFS 服务器:

cicscp -v start sfs_server /.:/cics/sfs/SFS_SERV

cicsadd

说明:添加CICS资源定义

Usage: cicsadd {-?|-c className [-r regionName] [-P|-B] [-f fileName] [-m modelId] resourceName [[attributeName=attributeValue]…]}

使用举例:

以下命令在CICSRGN1中增加一个通讯定义。

cicsadd -r CICSRGN1 -B -c cd CD01 ConnectionType=cics_tcp /

       RemoteTCPAddress=”9.181.108.37″ RemoteTCPPort=1436 /

       ListenerName=”lsnr1″

cicsget

说明:察看CICS资源定义

Usage: cicsget {-?|-c className [-r regionName] [-f fileName] {-l|-s [resourceName]|[resourceName]}}

使用举例:

以下命令察看CICSRGN1中名为CICSTEST的程序定义

cicsget -c pd -r CICSRGN1 CICSTEST

cicsupdate

说明:更改CICS资源定义的某个属性

Usage: cicsupdate {-?|-c className [-r regionName] [-P|-R|-B] [-f fileName] [resourceName] [[attributeName=attributeValue]…]}

使用举例:

以下命令更改CICSRGN1 CPMI交易的属性PermanentnoRSLChecknone

cicsupdate -r CICSRGN1 -B -c td CPMI Permanent=no RSLCheck=none

cicsinstall

说明:把一组资源定义安装到CICS Region的运行库中。

Usage: cicsinstall {-?|[-v] [-r regionName] {-a | -g groupName [groupName…] }}

使用举例:

GROUP1中的所有资源定义安装到CICSRGN1的运行库中:

cicsinstall -r CICSRGN1 -g GROUP1

cicsdelete

说明:删除CICS Region某个资源定义

Usage: cicsdelete {-?|-c className [-r regionName] [-P|-R|-B] [-f fileName] resourceName [resourceName…]}

使用举例:

删除CICSRGN1中名字为CICSTESTPD定义:

       cicsdelete -c pd -r CICSRGN1 -B CICSTEST

删除CICSRGN中名字为ABCDTD定义:

       cicsdelete -c td -r CICSRGN1 -B ABCD

cicsexport

说明:导出Region资源定义

Usage: cicsexport {-?| [-r regionName] [-o outFile] [-t temporaryWorkspace] [-l className…]}

使用举例:

以下命令导出Region CICSRGN1的定义到CICSRGN1.dmp文件:

cicsexport -r CICSRGN1 -o CICSRGN1.dmp

cicsimport

说明:导入Region的资源定义

Usage: cicsimport {-?| -r regionName [-g groupName] [-i inFile] [-l m|o] [-v] [-F] [-o] [-B]}

使用举例:

以下命令导入一个名为CICSRGN1Region-S参数表示不使用DCE服务器

cicsimport -r CICSRGN1-i CICSRGN1.dmp-S

cicsmigrate

说明:创建用于移植CICS资源定义的移植脚本

Usage: cicsmigrate {-?|[ -r regionName | -s | -c | -p | -m ] -g fileName -o logFileName}

使用举例:

以下命令为Region CICSRGN1创建移植脚本,输出文件为CICSRGN1.sh

cicsmigrate -g CICSRGN1.sh -o log1 -r CICSRGN1

K Shell下运行CICSRGN1.sh脚本

ksh CICSRGN1.sh

cicslssrc

说明:在Open平台察看cics 子系统的状态

使用举例:

cicslssrc -a

cicsnotify

说明:释放异常停止的Region所持有的资源

使用举例:

cicsnotify cics. CICSRGN1

cicsdfmt

说明:用于格式化CICS Dump文件

使用举例:

cicsdfmt -r CICSRGN1 A147DUMP.0001>A147.txt

 

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注