Link to home
Start Free TrialLog in
Avatar of midwestexp
midwestexp

asked on

How can i write to a output file through SAS Stored Process?

i am writing a Stored Process in SAS to Transform the COBOL COPY book, All i want to write the out put in to a  output file , I am very new to SAS probably one week of learning. Please help me .
Code also i have attached.
*ProcessBody;
 
%STPBEGIN;
 
*  End EG generated code (do not edit this line);
 
   DATA BANKREC;
   INFILE 'C:\Sample\SAS\XXXXX_COBOL_CP_and_EBCDIC_DATA\edcdic_dda_flat.DAT' RECFM=F LRECL=9600;
   INPUT
     @1          X52096_1200_PRESENT                     $EBCDIC1.
     @2          W_CO_ID                                 $EBCDIC2.
     @4          W_KEY                                   S370FPD8.0
     @12         W_PRDCT_CD                              $EBCDIC2.
     @14         X52096_1201_PRESENT                     $EBCDIC1.
     @15         M_PRDCT_CODE                            $EBCDIC3.
   
     ;
	RUN;
	PROC PRINT;
	RUN;
 
%STPEND;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of wigmeister
wigmeister

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of midwestexp
midwestexp

ASKER

Thank You.