Thanks so much for responding.. Please see my answer to your queries....
Provide the SASLOG output, and add OPTIONS OBS=0; to your SAS program for short-circuit execution
NOTE: This installation is running Base SAS hot fix bundle 82BX06.
Welcome to the SAS Information Delivery System,
888 888 Release 8.2!
8 8 8 8
8 8 8
8 8 8 This message displays in the SAS log when
8 8 the NEWS option is specified. You can
88 8 8 8 replace it with your own message by editing
8 8 8 8 8 the NEWS file.
8 8 8 8 8
8 888 8 88888
NOTE: The SASUSER library was not specified. SASUSER library will now b
NOTE: All data sets and catalogs in the SASUSER library will be deleted
prevent their deletion.
NOTE: SAS system options specified are:
SORT=4
NOTE: The initialization phase used 0.04 CPU seconds and 5453K.
1 OPTIONS OBS=0;
2 DATA FILEIN;
3 ID='1235';
4 KEYVAR= ID;
5 INFILE INFIL VSAM KEY=KEYVAR;
6 INPUT
7 @5 NAME $CHAR12.;
8 ;
NOTE: The infile INFIL is:
Dsname=BCST.SAI.TEST,
Volume=CGNP6H,Disp=SHR,Unit=3390,Type=INDEXED,
12 The SAS Sys
Spanned=NO,Recordsize=(.,80),Amp=('AMORG'),
Records=2,Keys=(4 0)
NOTE: 0 records were read from the infile INFIL.
NOTE: The data set WORK.FILEIN has 0 observations and 2 variables.
NOTE: The DATA statement used 0.03 CPU seconds and 7233K.
9 PROC PRINT DATA=FILEIN;
10 ;
NOTE: No observations in data set WORK.FILEIN.
NOTE: The PROCEDURE PRINT used 0.01 CPU seconds and 8044K.
NOTE: The SAS session used 0.08 CPU seconds and 8044K.
NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
Also, another possibility to increase diagnostics, add some PUT _ALL_; statements (or PUTLOG in SAS 9) to help determine what is happening with the DATA step.
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=1
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=2
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=3
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=4
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=5
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=6
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=7
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=8
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=9
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=10
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=11
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=12
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=13
ID=1235 KEYVAR=1235 _RBA_=80 _FDBK_=0 _RRN_=0 NAME=xxxxxxxxxx _ERROR_=0 _N_=14
This is keep on going.. until I cancel the job..
Also, are you getting CPU time and is there I/O activity -- information available from your JOB OUTPUT and from your batch job monitor (like SDSF)?
I am seeing I/O activity
Has this particular code worked in the past or is it the first attempt? And are you able to access the same file, say with IDCAMS?
This is our first attempt to process VSAM file. When I access the same file without key option, the code worked perfect. With KEY option, the program is looping