I have a JCL which is calling SAS.. and its giving Syntax Error.. Please suggest me..
STEP03 EXEC SAS
SAS.WORK DD UNIT=(SYSDA,59),SPACE=(CYL,(2500,2500)),
DCB=(RECFM=FB,LRECL=904,BLKSIZE=0,DSORG=PS)
INFL01 DD DSN=TEST.N001,
DISP=SHR
RESULT0 DD DSN=TEST.N001.FMT,
DISP=(,CATLG,DELETE),
UNIT=(FLXSHR,59),
SPACE=(CYL,(100,100),RLSE),
DCB=(RECFM=FB,LRECL=130)
SYSPRINT DD SYSOUT=*
SYSIN DD DISP=SHR,DSN=TEST.LAYOUT.FMTD4
DD DISP=SHR,DSN=TEST.LAYOUT.FMTD2
SAS.WORK DD UNIT=(SYSDA,59),SPACE=(CYL,(2500,2500)),
DCB=(RECFM=FB,LRECL=904,BLKSIZE=0,DSORG=PS)
INFL01 DD DSN=TEST.N001,
DISP=SHR
RESULT0 DD DSN=TEST.N001.FMT,
DISP=(,CATLG,DELETE),
UNIT=(FLXSHR,59),
SPACE=(CYL,(100,100),RLSE),
DCB=(RECFM=FB,LRECL=130)
SYSPRINT DD SYSOUT=*
SYSIN DD DISP=SHR,DSN=TEST.LAYOUT.FMTD4
DD DISP=SHR,DSN=TEST.LAYOUT.FMTD2
TEST.LAYOUT.FMTD4:
DATA IN01 ;
INFILE INFL01 LENGTH=RECLEN;
INPUT @01 NIKESH
@1 WXXX-HXXX-DXX-PX-IX PD6.
@7 WXXX-HXXX-PX-IX PD6.
@13 WXXX-BXXX-EXXX-CXX-CX $1.
@14 WXXX-PXXX-BXXX-IX $8.
INFILE INFL01 LENGTH=RECLEN;
INPUT @01 NIKESH
@1 WXXX-HXXX-DXX-PX-IX PD6.
@7 WXXX-HXXX-PX-IX PD6.
@13 WXXX-BXXX-EXXX-CXX-CX $1.
@14 WXXX-PXXX-BXXX-IX $8.
TEST.LAYOUT.FMTD2:
DATA _NULL_;
SET IN01;
FILE RESULT0;
PUT @1 WXXX-HXXX-DXX-PX-IX 10.
@7 WXXX-HXXX-PX-IX 10.
@13 WXXX-BXXX-EXXX-CXX-CX $1
@14 WXXX-PXXX-BXXX-IX $8
SET IN01;
FILE RESULT0;
PUT @1 WXXX-HXXX-DXX-PX-IX 10.
@7 WXXX-HXXX-PX-IX 10.
@13 WXXX-BXXX-EXXX-CXX-CX $1
@14 WXXX-PXXX-BXXX-IX $8
Sysout is coming as
1 DATA IN01 ;
2
3 INFILE INFL01 LENGTH=RECLEN;
4 INPUT @01 ELGBLBIT_REC
WARNING: A line of input contains one or more null (hexadecimal 00) characters, which may cause the SAS System to ignore part of
the line. The line, with null characters printed as question marks, is
@1 WC38-HIER-DOC-PT-ID PD6.
5 @1 WC38-HIER-DOC-PT-ID PD6.
_
_
_
22
22
22
76
76
76
WARNING: A line of input contains one or more null (hexadecimal 00) characters, which may cause the SAS System to ignore part of
2 The SAS System
the line. The line, with null characters printed as question marks, is
@7 WC38-HIER-PT-ID PD6.
ERROR 22-322: Syntax error, expecting one of the following: Ý, {.
ERROR 22-322: Syntax error, expecting one of the following: Ý, {.
ERROR 22-322: Syntax error, expecting one of the following: Ý, {.
ERROR 76-322: Syntax error, statement will be ignored.
ERROR 76-322: Syntax error, statement will be ignored.
ERROR 76-322: Syntax error, statement will be ignored.
2
3 INFILE INFL01 LENGTH=RECLEN;
4 INPUT @01 ELGBLBIT_REC
WARNING: A line of input contains one or more null (hexadecimal 00) characters, which may cause the SAS System to ignore part of
the line. The line, with null characters printed as question marks, is
@1 WC38-HIER-DOC-PT-ID PD6.
5 @1 WC38-HIER-DOC-PT-ID PD6.
_
_
_
22
22
22
76
76
76
WARNING: A line of input contains one or more null (hexadecimal 00) characters, which may cause the SAS System to ignore part of
2 The SAS System
the line. The line, with null characters printed as question marks, is
@7 WC38-HIER-PT-ID PD6.
ERROR 22-322: Syntax error, expecting one of the following: Ý, {.
ERROR 22-322: Syntax error, expecting one of the following: Ý, {.
ERROR 22-322: Syntax error, expecting one of the following: Ý, {.
ERROR 76-322: Syntax error, statement will be ignored.
ERROR 76-322: Syntax error, statement will be ignored.
ERROR 76-322: Syntax error, statement will be ignored.
Thanks
Nikesh