|
|||
|
I created a number example Pop11 progams at:
http://www.rosettacode.org/wiki I plan to write a few more, but ATM I wonder what is the easiest way to create (or delete) directory from Pop11. One can do external call to C library, but that is a little complicated. Another possibilit is to run a shell command, but this looks somwhat as cheating (and the very presence of shell depends on operating system). -- Waldek Hebisch hebisch@math.uni.wroc.pl |
|
|
||||
|
||||
|
|
|
|||
|
Waldek wrote:
> I created a number example Pop11 progams at: > > http://www.rosettacode.org/wiki That looks extremely useful. I see from this page http://www.rosettacode.org/wiki/Category:Pop11 that you have already created 47 articles. I shall try to look at them soon, and will put a cross reference into the pop11 primer and other high level files on the bham poplog site. > I plan to write a few more, but ATM I wonder what is the easiest > way to create (or delete) directory from Pop11. One can do > external call to C library, but that is a little complicated. It would also be possible to use sysexecute, though I have not tried that. > Another possibilit is to run a shell command, but this looks > somwhat as cheating (and the very presence of shell depends > on operating system). I.e. use 'sysobey'. This is similar to using sysexecute, except that sysobey invokes the the shell to run the command whereas sysexecute does not. sysobey has been available in all versions of poplog on all operating systems, and I have been using it for years to create and delete directories without any trouble. (My pop11 version of 'mkdir' includes the '-p' flag by default so that all intermediate directories are created too.) I suppose there is some inconsistency in that other file manipulation utilities are provided directly, as listed in REF sysio REF sysutil So I have no idea why directory creation and deletion were never included. Perhaps that's just because the developers, like me, were happy to use sysobey. One advantage of using sysobey or sysexecute is that environment variables can be used in file names. Otherwise I assume they would have to be expanded (using 'sysfileok') before the system procedure is invoked. Aaron http://www.cs.bham.ac.uk/~axs/ |
|
|||
|
Waldek wrote:
> I created a number example Pop11 progams at: > > http://www.rosettacode.org/wiki That looks extremely useful. I see from this page http://www.rosettacode.org/wiki/Category:Pop11 that you have already created 47 articles. I shall try to look at them soon, and will put a cross reference into the pop11 primer and other high level files on the bham poplog site. > I plan to write a few more, but ATM I wonder what is the easiest > way to create (or delete) directory from Pop11. One can do > external call to C library, but that is a little complicated. It would also be possible to use sysexecute, though I have not tried that. > Another possibilit is to run a shell command, but this looks > somwhat as cheating (and the very presence of shell depends > on operating system). I.e. use 'sysobey'. This is similar to using sysexecute, except that sysobey invokes the the shell to run the command whereas sysexecute does not. sysobey has been available in all versions of poplog on all operating systems, and I have been using it for years to create and delete directories without any trouble. (My pop11 version of 'mkdir' includes the '-p' flag by default so that all intermediate directories are created too.) I suppose there is some inconsistency in that other file manipulation utilities are provided directly, as listed in REF sysio REF sysutil So I have no idea why directory creation and deletion were never included. Perhaps that's just because the developers, like me, were happy to use sysobey. One advantage of using sysobey or sysexecute is that environment variables can be used in file names. Otherwise I assume they would have to be expanded (using 'sysfileok') before the system procedure is invoked. Aaron http://www.cs.bham.ac.uk/~axs/ |
|
|
![]() |
| Popular Tags in the Forum |
| examples, rosetta |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: CALL EXECUTE examples | SAS_learner | Newsgroup comp.soft-sys.sas | 0 | 11-19-2006 06:19 PM |
| Re: CALL EXECUTE examples | Arthur Tabachneck | Newsgroup comp.soft-sys.sas | 0 | 11-19-2006 05:25 PM |
| CALL EXECUTE examples | SAS_learner | Newsgroup comp.soft-sys.sas | 0 | 11-19-2006 05:16 PM |
| Re: NEED SAS examples on Conjoint Analysis and MDS | David L Cassell | Newsgroup comp.soft-sys.sas | 1 | 10-23-2006 02:08 PM |
| Re: Looking For Great Applied RegressionBook with SAS Examples | Talbot Michael Katz | Newsgroup comp.soft-sys.sas | 0 | 07-29-2005 02:53 PM |