Solved

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

Posted on 2008-10-23
4
1,163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
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…

726 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