1、z/OS 和UNIX系统的相同点和相异点有哪些啊?主目录和用户目录的区别是什么啊?
2、用JCL创建一个新的顺序数据集
3、写一个JCL程序将一个分区数据集中的所有的成员拷贝到另一个分区数据集中
4、写一个Cobol的Hello World程序(输出Hello World就可以了)
5、编写一个能够从键盘输入两个参数A和B的计算程序,并为这个程序写一个JCL的编译程序,要求:计算的式子为(A*B)/B+(A-B),并能输出最后的计算结果。
附:4和5越简单越好,谢谢啦
------解决方案--------------------------------------------------------
1.主目录和用户目录的区别:A user catalog stores the name and location of a data set (dsn/volume/unit). The master catalog usually stores only a data set HLQ with the name of the user catalog, which contains the location of all data sets prefixed by this HLQ. The HLQ is called an alias.
2.
//CUTE01A JOB ,CUTE01,NOTIFY=CUTE01
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=CUTE01.JCL.CREATPS,
// DISP=(,CATLG),RECFM=FB,
// SPACE=(TRK,(10,2,1)),LRECL=80,
// BLKSIZE=160,UNIT=SYSDA,VOL=SER=USER06
3.
//CPYPROC PROC INDD=,OUTDD=
//POCOPY EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=&INDD,DISP=SHR
//SYSUT2 DD DSN=&OUTDD,DISP=(NEW,CATLG,DELETE),
// DISP=(,CATLG),RECFM=FB,
// SPACE=(TRK,(10,5,2)),LRECL=80,
// BLKSIZE=160,UNIT=SYSDA,VOL=SER=USER06
//SYSIN DD DUMMY
4.
IDENTIFICATION DIVISION.
PROGRAM-ID. DISPTEST
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
S. DISPLAY 'HELLO WORLD'.
STOP RUN.
5.
IDENTIFICATION DIVISION.
PROGRAM-ID. DISPTEST
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 A PIC 9(1).
77 B PIC 9(1).
77 X PIC 9(2).
PROCEDURE DIVISION.
S. DISPLAY 'PLEASE IN PUT A NUMBER'.
ACCEPT A.
DISPLAY 'PLEASE INPUT ANOTHER NUMBER'.
ACCEPT B.
COMPUTE X = ( A * B ) / B + ( A – B ).
DISPLAY X.
STOP RUN.
//CUTE01A JOB ACCT#,YANGMN,CLASS=A,MSGCLASS=A,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//COBCL EXEC IGYWCL
//COBOL.SYSIN DD DISP=SHR,DSN=UR042.COBOL.SOURCE(TEST1)
//LKED.SYSLMOD DD DISP=SHR,DSN=UR042.COBOL.LOAD(TEST1)
//SYSPRINT DD SYSOUT=*