Solved

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

Posted on 2008-10-23
4
1,158 Views
Last Modified: 2013-11-16
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

0
Comment
Question by:midwestexp
4 Comments
 
LVL 4

Accepted Solution

by:
wigmeister earned 500 total points
ID: 22812012
Can you provide a sample of you input file?  Is it a flat file or vsam, etc.?  Do you get an error message when you execute the code above?

Here is a doc to review.  Look at the top of page 3.  It discusses reading Cobol and the COB2SAS utility.

http://www2.sas.com/proceedings/sugi27/p006-27.pdf
0
 

Author Closing Comment

by:midwestexp
ID: 31509382
Thank You.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about achieving the basic levels of HRIS security in the workplace.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question