- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Converting a l-o-n-g record 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
тАО10-15-2009 08:43 AM
тАО10-15-2009 08:43 AM
Record format: Stream_LF, maximum 0 bytes, longest 0 bytes
Record attributes: Carriage return carriage control
When I try to use CONVERT to change the attributes of the file, Convert also complains with "CONVERT-I-RTL, record longer than maximum length", and creates an empty file.
DUMP can read the file, but the output from DUMP will be pretty hard to manage. Is it possible to use Convert or a combination of Convert and Set File/Attributes (or something else) to get the files into a format I can read and parse with DCL?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 09:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 09:57 AM
тАО10-15-2009 09:57 AM
Re: Converting a l-o-n-g record file
I see RBrown has already suggested something similar.
Nothing you do can make current versions of VMS deal with RMS records > 32767 - fudge (Hein will know the exact limit).
How did the file get created on the VMS system? I would have expected you to have problems there. Was it a binary ftp?
Either you need to forced the file to appear to have shorter records, or open the file without RMS, i.e. map the file to a section of memory.
If you are planning to parse X12 in DCL, you are using the wrong tool for the job.
If you still want to use DCL, here is something to try.
Set the file type to fixed 512 byte records (or some other power of 2 like 128) snd then process it in parts. You will then be responsible to mend the stuff that spanned records.
Make a copy of the file, then change the file attributes on the copy.
$ backup ORIG.X12 COPY.X12
$ set file/attr=(RFM:FIX,LRL:512,MRS:512) COPY.X12
Now COPY.X12 will be split into 512 byte records. I am not sure what will happen to the last record, in other words what will be the last record if the file size is not a multiple of 512 bytes in length.
The other option is to write a program to map the file to private section, and then just treat it as a steam of bytes. But you won't be able to use DCL to do that.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 10:02 AM
тАО10-15-2009 10:02 AM
Re: Converting a l-o-n-g record file
We only need to use DCL to read a part of the file to get the trading partner name, which is embedded near the beginning of the file. We need the trading partner to process the file properly. The program doing the actual reading, parsing, and processing of the file is in Cache' (Mumps).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 10:03 AM
тАО10-15-2009 10:03 AM
Re: Converting a l-o-n-g record file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 12:52 PM
тАО10-15-2009 12:52 PM
Re: Converting a l-o-n-g record file
> systems, [...]
_How_ are you receiving these files?