?
Solved

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

Posted on 2008-10-23
4
Medium Priority
?
1,175 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 2000 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

Technology Partners: 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

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…
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

800 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