IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need Jcl to run SAS program


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Narsimha

New User


Joined: 06 Feb 2006
Posts: 3
Location: Vizag

PostPosted: Fri Apr 06, 2007 7:09 pm
Reply with quote

Hi

I need to convert SAS data set to text file. Please help in coding JCL Job. or let me know if there is any alternative to do the same.

Thanks in advance.
Narsimha
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Apr 06, 2007 8:59 pm
Reply with quote

Hello,

If you post the file description and a small amount of your sas data, we may be able to offer suggestions.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Apr 07, 2007 12:18 pm
Reply with quote

The usual default JCL for executing SAS is

//SAS EXEC SAS
//SYSIN DD *

You place your code after the SYSIN DD card, and any additional DD names can be used and placed between the 2 cards above.

I have been to some shops that have changed this, so if it doesn't work, ask your sysprogs for the PROC name that is correct.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Apr 08, 2007 2:53 am
Reply with quote

Hello,

Looks like i'm confused (again icon_confused.gif ). . . .

Do you have a file to convert, do you need to write sas code to create a new text file, both, or something else?

If all you have is a file that needs to be reformatted, we need a few records and then we can offer suggestions on easy ways to reformat your data.

We're here, so let us know what your requirement is icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Apr 08, 2007 12:16 pm
Reply with quote

Quote:
Please help in coding JCL Job

Well, that's what I've done.

I think that the OP also wants us to code the SAS too, but without any idea of the input variable list, the format of output or any indication on hourly rate for code supply, there is very little else to offer.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Apr 08, 2007 9:53 pm
Reply with quote

Hello,

Maybe we'll get a bit more detail to work with - maybe not. . .
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Mon Apr 09, 2007 5:20 pm
Reply with quote

Input the SAS dataset into the CONTENTS and PRINT procs (for the latter, just print a few recs if you have many recs). They'll show you what variables are there and their data types.

Then write a SAS DATA step to input the SAS dataset via the SET command and use the PUT command with appropriate format codes to create a flat file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top