- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: String too long for writing into file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 10:59 PM
тАО11-30-2006 10:59 PM
String too long for writing into file
However, the following error is prompted.
Script:
write d_file f$extract(0,256,content)
Error:
"command element is too long - shorten"
Then, I amend the script to use "write/symbol" instead. However, another error is prompted.
Error:
"%DCL-W-PARMDEL, invalid parameter delimiter - check use of special characters
\(0\"
Please help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 11:08 PM
тАО11-30-2006 11:08 PM
Re: String too long for writing into file
How about:
$ line = f$extract(0,256,content)
$ write/symb d_file line
Enjoy,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 11:23 PM
тАО11-30-2006 11:23 PM
Re: String too long for writing into file
Why?
Because WRITE/SYMBOL does exactly that:
it writes a symbol.
.. and you asked it to write the outcome of a lexical function.
BTW: VMS version _IS_ of interest here: since some UPDATE (don't remember which) for V7.3-2 the default tokenlength handled, as well as the length handled by /SYMBOL, have been increased 8-fold (thanks again, Guy Peleg!)
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 11:32 PM
тАО11-30-2006 11:32 PM
Re: String too long for writing into file
Script:
$ open/read/error=FILE_ERR s_file 'source_file
$ open/read/write/share/error=FILE_ERR d_file 'destn_file
$ !
$ READ_LOOP:
$ read/end_of_file=EOF/error=FILE_ERR s_file content
$ line = f$extract(0,256,content)
$ write/symbol d_file line
...
$ close d_file
$ close s_file
...
Error:
%RMS-F-NEF, not positioned to EOF on $PUT (sequential organization only)
Please help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 11:52 PM
тАО11-30-2006 11:52 PM
Re: String too long for writing into file
what _IS_ the "organisation" of the 'destn_file'?
Looks like you are trying to insert a record into an existing indexed file without positioning it first.
... But I am probably already assuming to much now.
Please post the output of
DIR/FULL 'destn_file'
(rename the output to .TXT, and attach it, if it has to come out formatted for human reading).
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 12:37 AM
тАО12-01-2006 12:37 AM
Re: String too long for writing into file
However, concatenation can't be used.
Script:
$ open/read/error=FILE_ERR s_file 'source_file
$ open/write/error=FILE_ERR d_file 'destn_file
$ !
$ read/end_of_file=EOF/error=FILE_ERR s_file content
$ i_content = f$extract(0,535,content)
$ b_content = f$extract(541,98,content)
$ f_content = i_content+"01DEC06"+b_content
$ write/symbol d_file f_content
Error:
%DCL-W-NOCCAT, parameter concatenation not allowed - check use of plus (+)
\F_CONTENT+\
Please help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 01:19 AM
тАО12-01-2006 01:19 AM
Re: String too long for writing into file
.
.
$ f_content = f$extract(0,535,content)+"01DEC06"+f$extract(541,98,content)
$ write/symbol d_file f_content
.
.
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 01:49 AM
тАО12-01-2006 01:49 AM
Re: String too long for writing into file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2006 04:42 AM
тАО12-01-2006 04:42 AM
Re: String too long for writing into file
for the "Forums way to express thanks" please read
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2006 02:03 AM
тАО12-03-2006 02:03 AM