Hello SAS Communities,
This is a strange one. I am having intermittent problems with code copying and moving to the top of my SAS System file in SAS Windowing - SOFTWARE: SAS (r) Proprietary Software 9.4 (TS1M6). I’m concerned about whether this is a bug or if it is a consequence of how I am handling the program files or some other user-error that I can avoid. There is nothing coming up in the Log re: errors or flags on this code - or any other code in the program.
Attached are screen shots of one program (3.1) just before I saved, after I reopened and showing the code in its original location (This was duplicated, not moved. It existed in both locations when the program was reopened.)
Also attached, 2 more examples of instances where this occurred. (2.3 and 4.1)
This occurred again, just today, with only one of the two programs I worked on. I can’t figure out the rhyme or reason to it, nor how to avoid this.
Thank you!
Danielle
In the SAS for Windows environment, there are several keys mapped to various editing and submit functions. One of these is F4, which by default "recalls" the last piece of code you submitted and adds it to your editor. It was more useful before we had a stateful editor like we have today...but it still does the function.
Any chance you're tripping over that, or perhaps another keyboard shortcut that you're triggering without realizing it?
In the SAS for Windows environment, there are several keys mapped to various editing and submit functions. One of these is F4, which by default "recalls" the last piece of code you submitted and adds it to your editor. It was more useful before we had a stateful editor like we have today...but it still does the function.
Any chance you're tripping over that, or perhaps another keyboard shortcut that you're triggering without realizing it?
This sounds like something that could DEFINTIELY be happening and it exactly what I would have expected - some kind of user error on my part. Something mechanical makes sense, given how often I hit F3. I am going to fake a finger flub to test this on the next program I open! Thank you.
Hi Reeza-
Thanks for getting back to me. I am not using VPN. This is all stored locally, on a SAS-dedicated PC laptop, directly on the C Drive. I am the only user.
Thanks,
Danielle
Forgive the obviousness of this question, but are you sure that you are actually saving the program file, and re-opening the one you saved? I.e., if you make some other change to the code (something simple like adding an extra semi-colon at the end of a statement), followed by saving and re-opening, is that change preserved?
Totally valid question. I am certain of this. These are assignment files that I am actively updating to answer homework questions and checkpoint questions. They are not closed until the assignment is completed. When I go back in, they open with everything that I know I have already answered and I can confirm this because I also place each answer in a word document that gets saved at the same time as the SAS system program. There is also exactly one copy saved of each because I am not engaging in version control for these short assignments.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.