Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SAS Return Code 12

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: SAS Return Code 12
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 25, 2013 12:00 pm    Post subject:
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: 1445
Location: Azeroth

PostPosted: Thu Jul 25, 2013 2:30 pm    Post subject:
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 */


http://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    Post subject: Reply to: SAS Return Code 12
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 25, 2013 2:41 pm    Post subject:
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: 1445
Location: Azeroth

PostPosted: Thu Jul 25, 2013 4:27 pm    Post subject:
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    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 PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts DFHWS2LS return value divated CICS 4 Mon Nov 07, 2016 5:44 pm
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us