Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Reginald bulk I/O
I'm writing every element in a stem variable, one at a time,
with a DO loop which contains a LINEOUT.

Is there a way to write the whole smash with a single line
of code, comparable to EXECIO on the mainframe?

Daniel B. Martin

Report this thread to moderator Post Follow-up to this message
Old Post
Daniel B. Martin
03-26-08 12:29 AM


Re: Reginald bulk I/O
>"Daniel B. Martin" <daniel88b88martin@earthlink88.net>
>I'm writing every element in a stem variable, one at a time,
>with a DO loop which contains a LINEOUT.
>Is there a way to write the whole smash with a single line
>of code, comparable to EXECIO on the mainframe?

Yes. The function LOADTEXT also has a save option.

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Glatt
03-27-08 12:57 AM


Re: Reginald bulk I/O
Jeff Glatt wrote:
> The function LOADTEXT also has a save option.

Thank you, Jeff.   I want to use LOADTEXT to write several
stem variables
to the same file, appending each to what was already
written.  I don't see
an APPEND option.   How may this be done?

Daniel B. Martin


Report this thread to moderator Post Follow-up to this message
Old Post
Daniel B. Martin
03-27-08 04:00 AM


Re: Reginald bulk I/O
"Daniel B. Martin" <daniel88b88martin@earthlink88.net> wrote:

> Jeff Glatt wrote: 
>
> Thank you, Jeff.   I want to use LOADTEXT to write several
> stem variables
> to the same file, appending each to what was already
> written.  I don't see
> an APPEND option.   How may this be done?

Surely that depends on how you open the file?

--
Jeremy C B Nicoll - my opinions are my own.

Report this thread to moderator Post Follow-up to this message
Old Post
Jeremy Nicoll - news posts
03-27-08 04:00 AM


Re: Reginald bulk I/O
>I want to use LOADTEXT to write several stem variables
>to the same file, appending each to what was already
>written.

Before you start making calls to LOADTEXT (for a given file), explicitly ope
n
that file (for writing) yourself. Use STREAM's "OPEN WRITE" if you wish to
retain any current contents, or "OPEN WRITE REPLACE" if you want to create t
he
file empty. If LOADTEXT sees that the file is already open for writing, then
LOADTEXT won't open the file itself, nor close it after writing out the stem
.
The net result is that several calls to LOADTEXT cause data to be appended.

When you're done writing the file, you'll also need to close it via STREAM, 
or
the file will remain open, and therefore other processes will be denied acce
ss
to it.

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Glatt
03-27-08 10:24 AM


Re: Reginald bulk I/O
Jeff Glatt wrote:
>  Use STREAM's "OPEN WRITE" if you wish to
> retain any current contents, or "OPEN WRITE REPLACE" if you want to create
 the
> file empty.

Perfect!   Thank you!

Daniel B. Martin

Report this thread to moderator Post Follow-up to this message
Old Post
Daniel B. Martin
03-27-08 10:24 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Rexx archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:57 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.