- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- how can i read a sequential rms file and write it ...
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
тАО08-18-2008 07:41 AM
тАО08-18-2008 07:41 AM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
From this code i suppose p1 p2 are the params containing filenames .
Because i can't see filenames inside code but only in run command."@formatter.com fileinp fileoutput".
So i think it can be the variables of filenames.
VMS is only a $ sign for me. Beginner is an expert for me...
I want only 2-3 tricky clues for my question.
You only wasting my time with this comment...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 07:59 AM
тАО08-18-2008 07:59 AM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
and is (record) means my record or it is only a keyword ?
p1 through p8 are 'automatic' names for command file arguments.
>> Hein p1 param1(input file), p2(ouput file) that is okey but with ' it understand it is a veriable??
You can use typed in text there, or used variable substitutions: 'your-variable-for-filename'
If this is part of a larger script, then I would just embed the core of the code, and not stick it in a seperated command files.
Untested/unfished hint:
$file_loop:
$close/nolog in
$close/nolog out
$inname = f$search("input*.dat")
$if infile.eqs."" then exit
$outname = f$parse(inname,,,"name") + ".out"
$open/error=file_loop in 'inname
$create 'outname
$open/append out 'outname
$record_loop:
$read/end=file_loop in record
$write out f$fao(record)
$goto record_loop
or...
$ i = 0
$file_loop:
$ i = i + 1
$close/nolog in
$close/nolog out
$name = f$fao("batch_!4ZL",i)
$inname = name + ".dat"
$outname = name + ".out"
$open/error=done in 'inname
$create 'outname
$open/append out 'outname
$record_loop:
$read/end=file_loop in record
$write out f$fao(record)
$goto record_loop
$done:
$write "Done. Could not open file: " inname
$exit
Happy learnings,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 10:33 AM
тАО08-18-2008 10:33 AM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
I think you have send me an Email just now, but it landed in my spam folder, and I hit the permanent delete button before reading.
Please resend if it is something you feel you can not ask here.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 12:22 PM
тАО08-18-2008 12:22 PM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
I resend it again.
Sure i can ask here but i want speed up the job.
Today i asked 5-6 question(some of them sure not valid questions...) and got 2 valid answer in 8 hours :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 12:37 PM
тАО08-18-2008 12:37 PM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
> sure not valid questions...) and got 2
> valid answer in 8 hours :)
Better questions might help considerably.
Starting three threads for one problem was
probably not optimal, either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 12:42 PM
тАО08-18-2008 12:42 PM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
You are absolutely right.
And as i wrote i cant recognise the true question.
As you know i guessed i can find the solution inside ftp and asked first question for ftp :)
and then asked for creating rms...
I have also users for my applications and lots of the questions nonsense:)
So i never think their questions nonsense.if they can ask it better way sure they can solve it...
Thanks for your helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 02:40 PM
тАО08-18-2008 02:40 PM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
Thanks for your replies.
I understand some of what you means at 01:38 AM :)
But still it seems only a tip of iceberg
Ongoing...
Kindly regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 06:36 PM
тАО08-18-2008 06:36 PM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2008 02:53 AM
тАО08-19-2008 02:53 AM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
Sure i used ftp with optimum mode and create a file. But not absolutely solved my question.
I think i am near my solution now :)
Now i have a sequential file that has variable lenght record format with cr control=carriage control.
Yes everythink is okey last step is;
i want to replace all "qw" strings with CRLF
in my file.
i tried with f$parse, f$string, f$locate
but i cant find true solution.
$ crlf = f$fao("!/")
$.............
pls fill in the blanks :)
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2008 03:56 AM
тАО08-19-2008 03:56 AM
Re: how can i read a sequential rms file and write it to a sequential variable lenght rms file
lf[0,7]=10
rec = rec - cr -lf (may be in a loop until all cr gone)
Wim