Computing.Net > Forums > OpenVMS > String too long to write into file

String too long to write into file

Reply to Message Icon

Original Message
Name: RockRock
Date: December 1, 2006 at 03:05:21 Pacific
Subject: String too long to write into file
OS: OpenVMS V7.3-2
CPU/Ram: NA
Model/Manufacturer: NA
Comment:

I would like to prepare a scripts for writing a string (longer than 255 chars) into a file. However, a error prompted due to 'element too long'.

Script:
write d_file f$extract(0,256,content)
Error:
%DCL-W-TKNOVF, command element is too long - shorten


Then, I tried to use 'write/symbol' instead of just 'write'. However, another error is prompted.

Error:
%DCL-W-PARMDEL, invalid parameter delimiter - check use of special characters


Please help. Thanks.



Report Offensive Message For Removal

Response Number 1
Name: Waxinator
Date: December 2, 2006 at 08:14:11 Pacific
Subject: String too long to write into file
Reply: (edit)

Use:
$ WRITE /SYMBOL d_file .....


Report Offensive Follow Up For Removal

Response Number 2
Name: Waxinator
Date: December 2, 2006 at 08:36:10 Pacific
Subject: String too long to write into file
Reply: (edit)

$ content = f$fao("!500*X")
$ open /write d_file xes.dat
$
$ line = f$extract(0,256,content)
$ write /symbol d_file line
$ close /nolog d_file


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: String too long to write into file

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software