has anyone ever seen this message and how to correct the JCL: Trying to copy a file from the Mainframe (PDS) to send to my email using SAS/ODS.
ERROR: Error opening attachment file ITS329.JCL.CNTL.
ERROR: Error opening attachment file ITS329.JCL.CNTL.
ERROR: Error opening attachment file ITS329.JCL.CNTL.
ERROR: PDS or PDSE directory open failed for file ITS329.JCL.CNTL. The LRECL (80
ERROR: PDS or PDSE directory open failed for file ITS329.JCL.CNTL. The LRECL (80
ERROR: PDS or PDSE directory open failed for file ITS329.JCL.CNTL. The LRECL (80
256 when specifying RECFM=U|F.
256 when specifying RECFM=U|F.
256 when specifying RECFM=U|F.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: The DATA statement used 0.01 CPU seconds and 14035K.
Hi mate,
In releases prior to SAS® 9.2, if you specified a blocksize larger than 32,760 (32K) for a data set in JCL or a FILENAME statement, SAS set the blocksize to 0. This caused the system to determine the optimal blocksize. However, starting with SAS® 9.3, SAS fails when opening that data set.
The following is an example of the failures that occur in SAS 9.2 and SAS 9.3:
... //STEP1 EXEC SAS ... //OUTFILE1 DD DISP=(NEW,CATLG,DELETE), // DSN=sample.lbi.dataset, // UNIT=SYSDA, // SPACE=(TRK,(15,15),RLSE), // DCB=(RECFM=FB,LRECL=80,BLKSIZE=64000) //SYSIN DD * DATA _NULL_; FILE OUTFILE1; PUT 'THIS IS A TEST TO SEE IF SAS WILL FAIL ON LBI FILE ALLOCATION'; RUN; /* //
ERROR: OPEN is aborted for file OUTFILE1. LRECL (80) or BLKSIZE (64000) is greater than 32,760. NOTE: The SAS System stopped processing this step because of errors.
IEC141I 013-68,IFG0196L,SASLBI01,SAS9,OUTFILE1,813B,SCRD01, sample.lbi.dataset
The IEC141I message indicates that the file OPEN failed with system abend 013, and the return code 68 indicates that the cause is an invalid block size.
To circumvent this issue, you must specify a BLKSIZE value of 32K or less.
Starting in SAS® 9.4 TS1M2, you can specify the SAS system option FILELBI to enable SAS to create tape files with a blocksize greater than 32K. If the option is set to NOFILELBI, SAS ignores blocksize specifications greater than 32K as it did prior to SAS 9.3. You can set this option at any time during the SAS session in an OPTIONS statement or in the CONFIG file.
Note: Because IBM supports LBI (Large Block Interface) with the BSAM access method only on tape, SAS can support only LBI for tape data sets.
For more information about support for Large Block Interface in SAS, see SAS Note 52839: "The FILEBLKSIZE option for 3490E or 3590 cannot be set to a value greater than 64K."
A hot fix is available for SAS 9.3 TSIM2 only. This fix provides support for the SAS system option FILELBI/NOFILELBI. Click the Hot Fix tab in this note to access this hot fix.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | z/OS | 9.3 TS1M2 | 9.4 TS1M2 |
Hope this helps
Thanks for the information.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.