Messages - nkormanik [ switch to compact view ]

Pages: prev1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 111next
51
Seriously, you folks need to deal with shenanigans and efficiently organizing projects all the time.  Otherwise, your butts would be full of bites.

To my knowledge, all that effort and skill never gets talked about.


52
Good suggestion @Ath.  Unfortunately I don't see that SAS will allow ambiguity with the dataset it's acting on.

Here's partial code:

proc summary data=sas_1.combined;
var
i_50501_Z
i_50502_Z
i_50503_Z
i_50504_Z
i_50505_Z
i_50508_Z
;
output out=sas_1.combined_temp (drop= _:) p80= /autoname;
run;

The .combined part refers to the dataset being acted upon.  I don't believe I can use a wildcard there.

I would need to change dataset filenames.  Or change script.


53
@BGM , @publicdomain and helpful community.

BGM, your idea is a good one.  Copy out, then copy back in.  Or rename.  Etc.

Trouble is, the file contents will change.

Here is the actual scenario:

I have 100 SAS datasets.  Each dataset is alone in its folder.  The folder name corresponds to the dataset filename, plus some extra:

Below are the first three folders, and the sole file inside:

===========
E:\00\AAPL\
===========
aapl_combined.sas7bdat

===========
E:\00\ACWI\
===========
acwi_combined.sas7bdat

===========
E:\00\ACWX\
===========
acwx_combined.sas7bdat

I need to update -- add some additional columns -- to each and every dataset file.

The 'program' -- or more accurately, 'script' -- I am going to use to make the changes to each file expects the name of the file to be:

combined.sas7bdat

No prefix.

And the location of said file is set to be:

C:\SAS_1\

So, it appears that I'll have to use one of the two following approaches:

(first dragging each respective file one at a time to the 'work' folder for the running of the script)

1.  Change the 'script' file 100 times, to tailor for the specific prefix.

or

2.  Change the name of each file, temporarily.  x100.

Going #2 route, I was thinking of TEMPORARILY changing the filename:

aapl_combined.sas7bdat --> combined.sas7bdat

Then making changes to the dataset file with the existing script.

Then changing the filename back to what it was before:

combined.sas7bdat --> aapl_combined.sas7bdat

Then dragging the changed dataset file back to its proper, home folder.

This whole rigmarole is likely faced regularly by programmers.  There surely are ways and means of conducting things more efficiently.  If anyone wants to chime in their thoughts regarding a more orderly process, please speak up.

Thanks much!

Nicholas Kormanik


54
Vic (and community), I used to put small requests in Skwire's section.  Haven't for a while.  I have a mini request presently that probably belongs over there.  But will just put it here for now....

Change File Name.  Then change it back to what it was.

This would be a two-phase process:

A file is in a folder.  Alone.  File is:  "4863 - xyz.txt"

Step #1.  Change that file's name to:  "xyz.txt"

(User now does some things.  Blah, blah....)

Step #2.  Change the file "xyz.txt" back to its original name, "4863 - xyz.txt"

Done!

If there is another forum where this request is more appropriate, please let me know.  Or if there is a means that I ought to have access to (some programming language?).

Thanks a million.  Hope all are well.

Nicholas Kormanik


55
PublicDomainVic / Keep icons arranged in a folder
« on: January 30, 2022, 10:02 PM »
This one might be impossible as well.

Suppose we have a folder with a number of icons for files and folders.

We want those arranged in a very particular way.  Not merely the usual sort, by name, extension, etc.  But the exact placement within that folder.  Some icons are up, some down, some to the side.

We want to be able to take a 'snapshot' of this specific arrangement.

Take snapshot.  Then rearrange to that snapshot at a later point in time.

So, two additional 'buttons' (perhaps?) on Explorer ToolBar:

1. Take arrangement snapshot
2. Restore arrangement

Or via right-click context menu.

What do you think?  Possible or not?

Additional details would have to be considered, of course.  Like, where will the 'arrangement details' be kept?  Within the folder, maybe in a hidden file? 

Will the implied coordinates be relative to the window, say from upper-left corner of the window being 0,0?

Too, what if additional icons/files are moved to that folder, will that not affect the previous arrangement possibility?

Etc.

Windows does allow for the above in a temporary way.  If 'View; Auto arrange' and 'View; Align to grid' are both unchecked.  But the arrangement doesn't last.  Close window and reopen, icons are sorted.  Etc.

Thanks so much!

Nicholas Kormanik


Pages: prev1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 111next
Go to full version