IBM CICS常用命令总汇

cicscp
说明:CICS 控制程序,可用于创建、删除、启动、停止DCE,SFS服务器,CICS Region和PPC 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 <;ⅪD 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
使用举例:
⒌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交易的属性Permanent为no,RSLCheck为none
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中名字为CICSTEST的PD定义:
cicsdelete -c pd -r CICSRGN1 -B CICSTEST
删除CICSRGN中名字为ABCD的TD定义:
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]}
使用举例:
以下命令导入一个名为CICSRGN1的Region,-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
说明:用于格式化CICSDump文件
使用举例:
cicsdfmt -r CICSRGN1 A147DUMP.0001>A147.txt
cicstfmt
说明:用于格式化CICS Trace文件
使用举例:
cd /var/cics_regions/ CICSRGN1/dumps/dir1
cicstfmt *trc
cicssfmt
说明:格式化统计信息文件
使用举例:
cd /var/cics_regions/ CICSRGN1/data
格式化统计信息报告
cicssfmt statsfile>stat.1
格式化详细统计信息报告
cicssfmt -i statsfile>stat.1
cicsterm
说明:启动CICS 3270仿真终端,用于连接CICS Region
使用举例:
/usr/lpp/cics/bin/cicsterm
cicstail
说明:
动态查看console文件和CSMT.out文件
使用举例:
cicstail –r CICSRGN1
cicssdt
说明:
导入导出sfs卷中的文件
Usage: cicssdt [-s Server] [-i inputFileName] [-o outputFileName] [-e] [-r] [-c commandName …]
使用举例:
cicssdt –s /.:/cics/sfs/SFS_SERV
sfsadmin
说明:
sfs管理工具
sfsadmin help {<command word>…}
Example: sfsadmin help import file
Available commands:
sfsadmin acquire lvol — Acquire a logical volume into the server.
sfsadmin add index — Add a secondary index to a file.
sfsadmin add lvol — Add a logical volume to the server.
sfsadmin copy file — Copy a file.
sfsadmin create clusteredfile — Create a btree clustered file.
sfsadmin create relativefile — Create a relative file.
sfsadmin create sequentialfile — Create an entry sequenced (sequential) file.
sfsadmin deactivate index — Deactivate a secondary index.
sfsadmin delete index — Delete a secondary index.
sfsadmin destroy file — Destroy a file.
sfsadmin empty file — Delete all the records in a file.
sfsadmin enable server — Enable the server.
sfsadmin expand file — Enlarge the primary storage area for a file.
sfsadmin expand index — Enlarge the storage area for a secondary index.
sfsadmin export file — Export a file to a specified device.
sfsadmin help — Display help message for given command
sfsadmin import file — Import a file from a specified device.
sfsadmin list files — List all files at the server.
sfsadmin list lvols — List all logical volumes of a server.
sfsadmin list ofds — List all ofds at the server.
sfsadmin query export — Query an export set on a specified device.
sfsadmin query file — Obtain information about a file.
sfsadmin query filelock — Obtain information about locks on a file.
sfsadmin query index — Obtain information about a secondary index.
sfsadmin query lvol — Obtain information about a logical volume.
sfsadmin query ofd — Obtain information about an ofd.
sfsadmin query server — Obtain information about a server.
sfsadmin query tranlock — Obtain information about transaction locks.
sfsadmin rebuild index — Rebuild a secondary index.
sfsadmin release lvol — Release a logical volume from the server.
sfsadmin rename file — Rename a file.
sfsadmin rename index — Rename an index.
sfsadmin reorganize file — Reorganize a file.
sfsadmin set recordlimit — Set max number of records on a file.
sfsadmin terminate ofd — Terminate an ofd.
使用举例:
sfsadmin –s /.:/cics/sfs/SFS_SERV list files
ppcadmin
说明:
ppcadmin管理工具
ppcadmin help
ppcadmin help {<command word>…}
Example: ppcadmin help create luentry
Available commands:
ppcadmin cancel resync — Cancel the specified resynchronization
ppcadmin create luentry — Create an executive LU entry
ppcadmin create remoteluentry — Create a remote LU entry
ppcadmin delete luentry — Delete an executive LU entry
ppcadmin delete remoteluentry — Delete a remote LU entry
ppcadmin destroy conv — Unbind the session carrying the specified Conversation
ppcadmin enable server — Complete server initialization
ppcadmin export configuration — Export the configuration from a running PPC Gateway server to a file
ppcadmin force xln — Force an XLN for the specified LU-LU pair
ppcadmin help — Display help message for given command
ppcadmin list convs — List all active SNA Conversations
ppcadmin list luentries — List all registered executive LU entries
ppcadmin list luws — List all active LUWs
ppcadmin list remoteluentries — List all registered remote LU entries
ppcadmin list resyncs — List all pending resynchronizations
ppcadmin list transactions — List all active transactions
ppcadmin list xlns — List XLN status for all known LU-LU pairs
ppcadmin modify luentry — Modify an executive LU entry
ppcadmin query conv — Query an active SNA Conversation
ppcadmin query gtid — Query an active global transaction
ppcadmin query luentry — Query an executive LU entry
ppcadmin query luw — Query an active LUW
ppcadmin query remoteluentry — Query a remote LU entry
ppcadmin query resync — Query the specified resynchronization
ppcadmin query stats — Query the specified Conversation and show its statistics
ppcadmin query transaction — Query an active transaction
ppcadmin query xln — Query XLN status for the specified LU-LU pair
ppcadmin stop server — Terminate the specified Gateway Server
使用举例:
ppcadmin –s /.:/cics/ppc/gateway/GWY list luws
以下命令在6.1版本以后出现:
cicserr
说明:查看cics的错误代码的解释
Usage: cicserr [message number | help]
message number
It should be a complete message code(like ERZxxxxxx | ERZxxxx | Axxx | Uxxxx).
help
It prints usage(this) message
使用举例:
cicserr A147
cicserr ERZ046091I

以下文章点击率最高

Loading…

发表评论