JCL - Am I doing this correctly?

Reply
Frequent Contributor
Posts: 128

JCL - Am I doing this correctly?


//JS013    EXEC SAS,WORK='130000,130000',PARM=CAPSOUT       
//*                                                         
//INSTCW3 DD DSN=A000000.WRKLIB1.INSTCW3.CLMIDS.SASS,       
//*        DISP=(,CATLG,DELETE)                             
//         DISP=SHR                                         
//NINSTCW2 DD DSN=A000000.WRKLIB1.NINSTCW3.CLMIDS.SASS,     
//*        DISP=(,CATLG,DELETE)                             
//         DISP=SHR                                         
//CLMWH   DD DSN=A000000.WRKLIB1.CLMWH.CLMIDS.SASS,         
//*       DISP=(,CATLG,DELETE)                              
//         DISP=SHR                                         
//CLMPROJ DD DSN=A000000.CLMPROJ.CLMIDS.SASS,               
//*        DISP=(,CATLG,DELETE)                             
//        DISP=SHR                                          
//REC1   DD DSN=A000000.REC1.CLMIDS.SASS,                   
//*       DISP=(,CATLG,DELETE)                              
//        DISP=SHR                                          
//*                                                         
//*                                                         





1 ********************************************************************; 2 OPTIONS NODATE LS=132 OBS=MAX SORT=2430 SORTPGM=BEST 3 PS=59 NOBYLINE YEARCUTOFF=1920; 4 5 /**COMBINE NINSTCW3 AND INSTCW3**/ 6 7 PROC SORT NODUPKEY DATA=NINSTCW2.DATA OUT=NINSTCW3; ERROR: CANNOT OPEN DATA LIBRARY NINSTCW2 BECAUSE IT IS UNINITIALIZED AND USER HA ERROR: CANNOT OPEN DATA LIBRARY NINSTCW2 BECAUSE IT IS UNINITIALIZED AND USER HA ERROR: CANNOT OPEN DATA LIBRARY NINSTCW2 BECAUSE IT IS UNINITIALIZED AND USER HA 8 BY CLMBASEID; 9 RUN;
Super User
Posts: 6,785

Re: JCL - Am I doing this correctly?

Probably incorrect.  To clear it up, here are related questions.

 

It seems you have a SAS data set you want to sort.  What's the name of it?  Where is it stored?

 

It seems you want to name the sorted SAS data set by a different name.  What's the name you want to use?  Where should it be stored?

Ask a Question
Discussion stats
  • 1 reply
  • 36 views
  • 0 likes
  • 2 in conversation