Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2012, 01:42 PM
krabbelmonster@googlemail.com
Guest
 
Posts: n/a
Default starting a step/process at the end of a program

Hi,

I'm using SAS on zOS/MVS. I'm looking for a possibility to start a step/process at the end of every program like autoexec in the beginnig.

I was looking around, but did not find anything.

autoexec
....
programm
....
?????


thx for sharin ur skills
Sascha
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 06-28-2012, 03:52 PM
Kenneth M. Lin
Guest
 
Posts: n/a
Default Re: starting a step/process at the end of a program

Write a program that you want to be executed at the start and use %include
statement.

wrote in message
news:5a36458c-f8d4-4ca5-9bb2-22536e6aa170@googlegroups.com...

Hi,

I'm using SAS on zOS/MVS. I'm looking for a possibility to start a
step/process at the end of every program like autoexec in the beginnig.

I was looking around, but did not find anything.

autoexec
....
programm
....
?????


thx for sharin ur skills
Sascha

Reply With Quote
  #3 (permalink)  
Old 06-29-2012, 09:50 AM
krabbelmonster@googlemail.com
Guest
 
Posts: n/a
Default Re: starting a step/process at the end of a program

Hi,

this way will be the hard way, because then I have to change up to 1800 Jobs.

I'm looking for an easy way to change at only one place. (for example: the config).

Sascha
Am Donnerstag, 28. Juni 2012 17:52:03 UTC+2 schrieb Kenneth M. Lin:
> Write a program that you want to be executed at the start and use %include
> statement.
>
> wrote in message
> news:
>
> Hi,
>
> I'm using SAS on zOS/MVS. I'm looking for a possibility to start a
> step/process at the end of every program like autoexec in the beginnig.
>
> I was looking around, but did not find anything.
>
> autoexec
> ...
> programm
> ...
> ?????
>
>
> thx for sharin ur skills
> Sascha


Reply With Quote
  #4 (permalink)  
Old 06-29-2012, 08:57 PM
Kenneth M. Lin
Guest
 
Posts: n/a
Default Re: starting a step/process at the end of a program

You can indeed create autoexec.sas as long as you know where to place it and
it will be executed every time you invoke SAS.

wrote in message
news:f14d0ba6-059c-4595-9ff7-2dceb86a8074@googlegroups.com...

Hi,

this way will be the hard way, because then I have to change up to 1800
Jobs.

I'm looking for an easy way to change at only one place. (for example: the
config).

Sascha
Am Donnerstag, 28. Juni 2012 17:52:03 UTC+2 schrieb Kenneth M. Lin:
> Write a program that you want to be executed at the start and use %include
> statement.
>
> wrote in message
> news:
>
> Hi,
>
> I'm using SAS on zOS/MVS. I'm looking for a possibility to start a
> step/process at the end of every program like autoexec in the beginnig.
>
> I was looking around, but did not find anything.
>
> autoexec
> ...
> programm
> ...
> ?????
>
>
> thx for sharin ur skills
> Sascha


Reply With Quote
  #5 (permalink)  
Old 07-02-2012, 01:58 PM
zaferalpay@gmail.com
Guest
 
Posts: n/a
Default Re: starting a step/process at the end of a program

On Thursday, June 28, 2012 4:42:28 PM UTC+3, (unknown) wrote:
> Hi,
>
> I'm using SAS on zOS/MVS. I'm looking for a possibility to start a step/process at the end of every program like autoexec in the beginnig.
>
> I was looking around, but did not find anything.
>
> autoexec
> ...
> programm
> ...
> ?????
>
>
> thx for sharin ur skills
> Sascha


Have you tried INITSTMT/TERMSTMT options included at command line?
You can enclose sas codes even macro calls inside these statements.
Statments inside INITSTMT/TERMSTMT option executed before/after statements in a.SAS executed.

SAS.EXE -SYSIN a.sas -INITSTMT 'proc print data=sashelp.class;run;' -TERMSTMT 'proc print data=sashelp.class;run;'
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 01:17 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.