Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9189353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:13:02+00:00 2026-06-17T20:13:02+00:00

How do you ADD an instrument variable to an existing definition? using code? eg:

  • 0

How do you ADD an instrument variable to an existing definition? using code? eg:

proc risk;
 environment new = work.Test ;
 declare instvars=(var1 num var, var2 num var, var3 num var);
 instrument MyInst variables = ( var1, var2 ) ;
 environment save;
run;

proc risk;
 environment open= work.Test;
 instrument MyInst variables= ( /* how do I add var3? */);
 environment save;
run;

There must be an easy way! If not – how can one determine the original definition (programmatically) ?

To expand on the requirement – I cannot update the original instrument definition, as this is inherited from a production environment. Also – I do not wish to hardcode the original instrument variables in the second instrument statement, in case the original environment changes.

I think there might not be another way (other than hard coding) but open to ideas!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:13:03+00:00Added an answer on June 17, 2026 at 8:13 pm

    Got there – with a bit of help! Without using the Risk Dimensions UI, or rewriting the instrument statement, the only other way is to use the dataset created by the WRITETYPES statement.

    proc risk;
     environment new = work.Test ;
     declare instvars=(var1 num var, var2 num var, var3 num var);
     instrument MyInst variables = ( var1, var2 ) ;
     writetypes out=temp;
     environment save;
    run;
    
    proc sql; 
    insert into temp set insttype='MyInst', type='VAR', content='VAR3';
    
    proc sort data=temp; by _all_; run;
    
    proc risk;
     environment open= work.Test;
     readtypes data=temp;
     environment save;
    run;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To add a new pair to Hash I do: {:a => 1, :b =>
to add clarity to the below. I was considering using timers or storyboard.CurrentTimeInvalidated but
I add this problem for quite some time when using NetBeans. Recently I add
I want to instrument a class via a decorator, to add some instance variables
Map<Object,String> mp=new HashMap<Object, String>(); Scanner sc=new Scanner(System.in); System.out.println(Enter the instrument name); String name=sc.next(); mp.put(name,
Instruments is reporting me a leak of a NSDate variable. But If I add
I want to exclude cobertura from instrumenting code if test=true. Right now I have
I'm experimenting with using XPerf to instrument an application for performance analysis. My goal
I recently read about using GCC's code generation features (specifically, the -finstrument-functions compiler flag)
It's possible in C# to write things such way: Instrument instr = new Instrument

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.