I have a large input file that I need to break up into smaller files of 250 records. The size of the input file changes so the number of observations is never the same. Can I alter my code below to create multiple out files of 250 records?
Thanks
//S02 EXEC SAS
//WORK DD SPACE=(CYL,(150,150))
//IN1 DD DSN=DC.XXXXX.ORS.CONV.WORK1(+1),
// DISP=SHR
//*OUT DD SYSOUT=*
//OUT DD DSN=DC.XXXXX.ORS.CONV.WORK2(+1),
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=80,
// BLKSIZE=6160,
// RECFM=FB,
// SPACE=(TRK,(15,15),RLSE)
//SYSIN DD *
DATA RECORD;
INFILE IN1 FIRSTOBS=1 OBS=250;
INPUT @39 VOLS $6.;
FILE OUT;
IDVAR+1;
PUT @1 '//DD'IDVAR HEX2.' DD UNIT=3390,DISP=SHR,VOL=SER='VOLS +(-1) /
@3 'CONVERTV SMS REDET ALLMULTI DDN(DD'IDVAR HEX2. ')';