Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Program to convert SAS code to pli

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
babuprashad
Warnings : 1

New User


Joined: 09 Aug 2007
Posts: 15
Location: mysore

PostPosted: Tue Mar 15, 2011 4:50 pm    Post subject: Program to convert SAS code to pli
Reply with quote

Hi,

Do we have any rexx or any code to convert SAS report code to PLI copy book. I searched on the internet and found that we have a program to convert COBOL copybook to SAS code. But, did not find any thing which converts from SAS to PLI/COBOL......thanks
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1521
Location: Chennai

PostPosted: Tue Mar 15, 2011 5:10 pm    Post subject:
Reply with quote

Hi,
Quote:
SAS report code

Are you trying to convert SAS input statements to PLI?
Back to top
View user's profile Send private message
babuprashad
Warnings : 1

New User


Joined: 09 Aug 2007
Posts: 15
Location: mysore

PostPosted: Tue Mar 15, 2011 6:27 pm    Post subject: Reply to: Program to convert SAS code to pli
Reply with quote

Yes....have u done this before....???
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Tue Mar 15, 2011 6:45 pm    Post subject:
Reply with quote

As long as you;re just talking DATA step statements, I can't imagine the conversion would be very complex. If there are PROC step statements to be converted, that's an elephant of a different color.

I haven't seen -- or heard -- of any products to do this of conversion. I suspect you're going to have to do the conversion by hand.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1521
Location: Chennai

PostPosted: Tue Mar 15, 2011 9:11 pm    Post subject:
Reply with quote

Hi,

I have not done this. But automating convertion of an input statement could be a daunting task, as SAS has list, column, position input, and not to mention the position inputs with +'s and :'s and @'s and you have to take into account of length statements, format statements. icon_confused.gif
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

PostPosted: Wed Mar 16, 2011 5:20 pm    Post subject:
Reply with quote

Quote:
But automating convertion of an input statement could be a daunting task


One might also consider this a very interesting challenge.

As pointed out, many statements other than the INPUT must be processed: length and format have been mentioned.

There might also be macros preceding the INPUT that provide this code, so they must be expanded. Also, any macro variables must be resolved. These would necessarily have been defined prior to the data step containing the INPUT, so recognizing this boundary is required; a macro variable set in this step must be ignored.

It would be reasonable to put restrictions on version 1 of the conversion program that match code at your installation. You must still check for code that "breaks" these rules and report the offending code.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us