How to use a code node to list all of the datasets in a .egp file using SAS EG?
I want to get a list all of the datasets to enter them into an array.
I could then feed each item in the array into a macro to prevent me from having to do a repetitive task.
sas
add a comment |
I want to get a list all of the datasets to enter them into an array.
I could then feed each item in the array into a macro to prevent me from having to do a repetitive task.
sas
1
I would try to avoid making code EG-dependent. If all of these datasets are in a certain library, you can get a list from dictionary.tables. You could also use dataset naming conventions. The more dependent the solution is on the IDE (EG), the more changes you will need to make if you ever change to another IDE (e.g. SAS Studio), or run code as a batch job.
– Quentin
Nov 13 '18 at 14:09
It depends on what you mean by 'all of the datasets in a .egp file'. EGP files don't actually have data sets, but they connect to libraries that do and they generate files that go to the work library. They can also delete files. So it depends on exactly how you define that.
– Reeza
Nov 13 '18 at 16:42
add a comment |
I want to get a list all of the datasets to enter them into an array.
I could then feed each item in the array into a macro to prevent me from having to do a repetitive task.
sas
I want to get a list all of the datasets to enter them into an array.
I could then feed each item in the array into a macro to prevent me from having to do a repetitive task.
sas
sas
edited Nov 14 '18 at 8:40
Community♦
11
11
asked Nov 13 '18 at 11:21
JohnDataSciJohnDataSci
61
61
1
I would try to avoid making code EG-dependent. If all of these datasets are in a certain library, you can get a list from dictionary.tables. You could also use dataset naming conventions. The more dependent the solution is on the IDE (EG), the more changes you will need to make if you ever change to another IDE (e.g. SAS Studio), or run code as a batch job.
– Quentin
Nov 13 '18 at 14:09
It depends on what you mean by 'all of the datasets in a .egp file'. EGP files don't actually have data sets, but they connect to libraries that do and they generate files that go to the work library. They can also delete files. So it depends on exactly how you define that.
– Reeza
Nov 13 '18 at 16:42
add a comment |
1
I would try to avoid making code EG-dependent. If all of these datasets are in a certain library, you can get a list from dictionary.tables. You could also use dataset naming conventions. The more dependent the solution is on the IDE (EG), the more changes you will need to make if you ever change to another IDE (e.g. SAS Studio), or run code as a batch job.
– Quentin
Nov 13 '18 at 14:09
It depends on what you mean by 'all of the datasets in a .egp file'. EGP files don't actually have data sets, but they connect to libraries that do and they generate files that go to the work library. They can also delete files. So it depends on exactly how you define that.
– Reeza
Nov 13 '18 at 16:42
1
1
I would try to avoid making code EG-dependent. If all of these datasets are in a certain library, you can get a list from dictionary.tables. You could also use dataset naming conventions. The more dependent the solution is on the IDE (EG), the more changes you will need to make if you ever change to another IDE (e.g. SAS Studio), or run code as a batch job.
– Quentin
Nov 13 '18 at 14:09
I would try to avoid making code EG-dependent. If all of these datasets are in a certain library, you can get a list from dictionary.tables. You could also use dataset naming conventions. The more dependent the solution is on the IDE (EG), the more changes you will need to make if you ever change to another IDE (e.g. SAS Studio), or run code as a batch job.
– Quentin
Nov 13 '18 at 14:09
It depends on what you mean by 'all of the datasets in a .egp file'. EGP files don't actually have data sets, but they connect to libraries that do and they generate files that go to the work library. They can also delete files. So it depends on exactly how you define that.
– Reeza
Nov 13 '18 at 16:42
It depends on what you mean by 'all of the datasets in a .egp file'. EGP files don't actually have data sets, but they connect to libraries that do and they generate files that go to the work library. They can also delete files. So it depends on exactly how you define that.
– Reeza
Nov 13 '18 at 16:42
add a comment |
1 Answer
1
active
oldest
votes
I don't recall EG having that level of introspection available to submitted code. However, an add-in tool can be programmed (as a Windows .dll) and the add-in will be able to examine the client (EG), project and other meta information not available to code submitted by the client (i.e. your SAS code that will run either locally or remotely depending on server settings of the active profile)
A link to reference documentation (SAS.EG.ADDins) and other add-in material can be found at http://support.sas.com/documentation/onlinedoc/guide/release30/addins/
The SAS.EG.Addins help states
Services Supplied by the Host Application (to the Add-in)
The following interfaces
surface information and services that are supplied by the host
application (for example, SAS Enterprise Guide and the SAS Add-in for
Microsoft Office). These are the interfaces that are supported by all
host applications:
ISASTaskConsumer
Provides information about what the application
supports and access to other supported interfaces. Also provides
access to options specific to the particular instance of the add-in.
ISASTaskData, ISASTaskDataAccessor, ISASTaskDataColumn
Provides access
to data services.
These are the interfaces that might be supported by a given host
application. If your add-in code takes advantage of any of these
interfaces/services, you should include checks to ensure that an
interface is supported before you attempt to use it.
ISASTaskSubmit
Allows your add-in to submit a SAS program for
processing while the user interact with your user interface.
ISASTaskUtilities
Supplies utility methods for use by your add-in.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53279933%2fhow-to-use-a-code-node-to-list-all-of-the-datasets-in-a-egp-file-using-sas-eg%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't recall EG having that level of introspection available to submitted code. However, an add-in tool can be programmed (as a Windows .dll) and the add-in will be able to examine the client (EG), project and other meta information not available to code submitted by the client (i.e. your SAS code that will run either locally or remotely depending on server settings of the active profile)
A link to reference documentation (SAS.EG.ADDins) and other add-in material can be found at http://support.sas.com/documentation/onlinedoc/guide/release30/addins/
The SAS.EG.Addins help states
Services Supplied by the Host Application (to the Add-in)
The following interfaces
surface information and services that are supplied by the host
application (for example, SAS Enterprise Guide and the SAS Add-in for
Microsoft Office). These are the interfaces that are supported by all
host applications:
ISASTaskConsumer
Provides information about what the application
supports and access to other supported interfaces. Also provides
access to options specific to the particular instance of the add-in.
ISASTaskData, ISASTaskDataAccessor, ISASTaskDataColumn
Provides access
to data services.
These are the interfaces that might be supported by a given host
application. If your add-in code takes advantage of any of these
interfaces/services, you should include checks to ensure that an
interface is supported before you attempt to use it.
ISASTaskSubmit
Allows your add-in to submit a SAS program for
processing while the user interact with your user interface.
ISASTaskUtilities
Supplies utility methods for use by your add-in.
add a comment |
I don't recall EG having that level of introspection available to submitted code. However, an add-in tool can be programmed (as a Windows .dll) and the add-in will be able to examine the client (EG), project and other meta information not available to code submitted by the client (i.e. your SAS code that will run either locally or remotely depending on server settings of the active profile)
A link to reference documentation (SAS.EG.ADDins) and other add-in material can be found at http://support.sas.com/documentation/onlinedoc/guide/release30/addins/
The SAS.EG.Addins help states
Services Supplied by the Host Application (to the Add-in)
The following interfaces
surface information and services that are supplied by the host
application (for example, SAS Enterprise Guide and the SAS Add-in for
Microsoft Office). These are the interfaces that are supported by all
host applications:
ISASTaskConsumer
Provides information about what the application
supports and access to other supported interfaces. Also provides
access to options specific to the particular instance of the add-in.
ISASTaskData, ISASTaskDataAccessor, ISASTaskDataColumn
Provides access
to data services.
These are the interfaces that might be supported by a given host
application. If your add-in code takes advantage of any of these
interfaces/services, you should include checks to ensure that an
interface is supported before you attempt to use it.
ISASTaskSubmit
Allows your add-in to submit a SAS program for
processing while the user interact with your user interface.
ISASTaskUtilities
Supplies utility methods for use by your add-in.
add a comment |
I don't recall EG having that level of introspection available to submitted code. However, an add-in tool can be programmed (as a Windows .dll) and the add-in will be able to examine the client (EG), project and other meta information not available to code submitted by the client (i.e. your SAS code that will run either locally or remotely depending on server settings of the active profile)
A link to reference documentation (SAS.EG.ADDins) and other add-in material can be found at http://support.sas.com/documentation/onlinedoc/guide/release30/addins/
The SAS.EG.Addins help states
Services Supplied by the Host Application (to the Add-in)
The following interfaces
surface information and services that are supplied by the host
application (for example, SAS Enterprise Guide and the SAS Add-in for
Microsoft Office). These are the interfaces that are supported by all
host applications:
ISASTaskConsumer
Provides information about what the application
supports and access to other supported interfaces. Also provides
access to options specific to the particular instance of the add-in.
ISASTaskData, ISASTaskDataAccessor, ISASTaskDataColumn
Provides access
to data services.
These are the interfaces that might be supported by a given host
application. If your add-in code takes advantage of any of these
interfaces/services, you should include checks to ensure that an
interface is supported before you attempt to use it.
ISASTaskSubmit
Allows your add-in to submit a SAS program for
processing while the user interact with your user interface.
ISASTaskUtilities
Supplies utility methods for use by your add-in.
I don't recall EG having that level of introspection available to submitted code. However, an add-in tool can be programmed (as a Windows .dll) and the add-in will be able to examine the client (EG), project and other meta information not available to code submitted by the client (i.e. your SAS code that will run either locally or remotely depending on server settings of the active profile)
A link to reference documentation (SAS.EG.ADDins) and other add-in material can be found at http://support.sas.com/documentation/onlinedoc/guide/release30/addins/
The SAS.EG.Addins help states
Services Supplied by the Host Application (to the Add-in)
The following interfaces
surface information and services that are supplied by the host
application (for example, SAS Enterprise Guide and the SAS Add-in for
Microsoft Office). These are the interfaces that are supported by all
host applications:
ISASTaskConsumer
Provides information about what the application
supports and access to other supported interfaces. Also provides
access to options specific to the particular instance of the add-in.
ISASTaskData, ISASTaskDataAccessor, ISASTaskDataColumn
Provides access
to data services.
These are the interfaces that might be supported by a given host
application. If your add-in code takes advantage of any of these
interfaces/services, you should include checks to ensure that an
interface is supported before you attempt to use it.
ISASTaskSubmit
Allows your add-in to submit a SAS program for
processing while the user interact with your user interface.
ISASTaskUtilities
Supplies utility methods for use by your add-in.
answered Nov 13 '18 at 12:52
RichardRichard
8,87721227
8,87721227
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53279933%2fhow-to-use-a-code-node-to-list-all-of-the-datasets-in-a-egp-file-using-sas-eg%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I would try to avoid making code EG-dependent. If all of these datasets are in a certain library, you can get a list from dictionary.tables. You could also use dataset naming conventions. The more dependent the solution is on the IDE (EG), the more changes you will need to make if you ever change to another IDE (e.g. SAS Studio), or run code as a batch job.
– Quentin
Nov 13 '18 at 14:09
It depends on what you mean by 'all of the datasets in a .egp file'. EGP files don't actually have data sets, but they connect to libraries that do and they generate files that go to the work library. They can also delete files. So it depends on exactly how you define that.
– Reeza
Nov 13 '18 at 16:42