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

SAS Return Code 12


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
padhumainframe

New User


Joined: 21 Sep 2010
Posts: 17
Location: India

PostPosted: Thu Jul 25, 2013 11:15 am
Reply with quote

HI,

How do i get a return code of 12 from a SAS macro. I just use SAS to compare 2 flat files that are sorted. I need to test for a return code 12.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jul 25, 2013 12:00 pm
Reply with quote

So where does this return code 12 come from and where do you want to test for it.

You need to learn to explain EXACTLY what it is that you want.

Besides, why are you using SAS to do this when a perfectly good IBM utility already exists.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Jul 25, 2013 2:30 pm
Reply with quote

Hello,
Quote:
How do i get a return code of 12 from a SAS macro.

Code:
%MACRO RC12;   /* DEFINE MACRO */
  %ABORT 12;
%MEND;     

%RC12;     /*CALL MACRO */


support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a002475061.htm
Back to top
View user's profile Send private message
padhumainframe

New User


Joined: 21 Sep 2010
Posts: 17
Location: India

PostPosted: Thu Jul 25, 2013 2:33 pm
Reply with quote

Hi EXPAT,

I need to get that return code of 12 for a JCL executing a BASE SAS Macro to Compare two files.

As u mentioned, this could have been done using an IBM utility but still the requirement is to use a SAS Macro and produce an output file that contains only changed data.

I Dont get any problem in the JCL executing succesfully and creating a changed data file. But i need this to satisfy a test scenario by getting a return code of 12..
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jul 25, 2013 2:41 pm
Reply with quote

May I suggest that you compare the resource consumed by both methods and see how much difference there is.

And who set this requirement ???
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Jul 25, 2013 4:27 pm
Reply with quote

Quote:
a BASE SAS Macro to Compare two files.

Show what this macro does, someone might be able to help you modify it. There is not predefined standard macro in SAS to compare 2 flat files.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top