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

Posted on 2008-10-23
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.


*  End EG generated code (do not edit this line);


   INFILE 'C:\Sample\SAS\XXXXX_COBOL_CP_and_EBCDIC_DATA\edcdic_dda_flat.DAT' RECFM=F LRECL=9600;


     @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.







Open in new window

Question by:midwestexp

Accepted Solution

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.

Author Closing Comment

ID: 31509382
Thank You.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Stop the possibility of taking backup in MySQL on Ubuntu 1 71
select query - oracle 16 91
C# Application Local DB Connection String 23 105
dbcc checkdb datawarehouse 2 40
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

947 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

18 Experts available now in Live!

Get 1:1 Help Now