Solved

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

Posted on 2008-10-23
4
1,170 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
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…

719 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