Solved

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

Posted on 2008-10-23
4
1,143 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
Comment Utility
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
Comment Utility
Thank You.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now