- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: CONVERT Utility
Operating System - OpenVMS
1753687
Members
5449
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-11-2005 04:52 AM
тАО07-11-2005 04:52 AM
CONVERT Utility
Sometimes a need to delete the last two bytes of each record in a (fixed length record) file. I thought the best way was to do a CONVERT
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 05:13 AM
тАО07-11-2005 05:13 AM
Re: CONVERT Utility
DCL help suggests that this should work.
And I tried it. Created a small datafile with 12 char long records
$ ty aaa.2
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
and converted it using
$ convert/fdl=fix aaa.2 aaa.3/stat/trunc
CONVERT Statistics
Number of Files Processed: 1
Total Records Processed: 8 Buffered I/O Count: 14
Total Exception Records: 0 Direct I/O Count: 47
Total Valid Records: 8 Page Faults: 28
Elapsed Time: 0 00:00:01.67 CPU Time: 0 00:00:00.03
where fix.fdl contained
IDENT FDL_VERSION 01 "11-JUL-2005 22:07:02 OpenVMS FDL Editor"
SYSTEM
SOURCE "OpenVMS"
FILE
ALLOCATION 0
BEST_TRY_CONTIGUOUS yes
EXTENSION 0
ORGANIZATION sequential
RECORD
BLOCK_SPAN yes
CARRIAGE_CONTROL carriage_return
FORMAT fixed
SIZE 10
and result is
$ ty aaa.3
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890
this was done on OpenVMS V8.2 (Alphaserver 1000 5/400)
so, what hardware, what operating system version, are patches uptodate, what does "all wrong" actually mean?
_veli
And I tried it. Created a small datafile with 12 char long records
$ ty aaa.2
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
and converted it using
$ convert/fdl=fix aaa.2 aaa.3/stat/trunc
CONVERT Statistics
Number of Files Processed: 1
Total Records Processed: 8 Buffered I/O Count: 14
Total Exception Records: 0 Direct I/O Count: 47
Total Valid Records: 8 Page Faults: 28
Elapsed Time: 0 00:00:01.67 CPU Time: 0 00:00:00.03
where fix.fdl contained
IDENT FDL_VERSION 01 "11-JUL-2005 22:07:02 OpenVMS FDL Editor"
SYSTEM
SOURCE "OpenVMS"
FILE
ALLOCATION 0
BEST_TRY_CONTIGUOUS yes
EXTENSION 0
ORGANIZATION sequential
RECORD
BLOCK_SPAN yes
CARRIAGE_CONTROL carriage_return
FORMAT fixed
SIZE 10
and result is
$ ty aaa.3
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890
this was done on OpenVMS V8.2 (Alphaserver 1000 5/400)
so, what hardware, what operating system version, are patches uptodate, what does "all wrong" actually mean?
_veli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 06:06 AM
тАО07-11-2005 06:06 AM
Re: CONVERT Utility
Dom,
If you need this, for converting files you mentioned in yours previous thread
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757
leave the file as stream and convert it with a fdl which has fixed records:
$ CONVERT/FDL=SYS$INPUT
RECORD
FORMAT FIXED
SIZE 50
^Z
Bojan
If you need this, for converting files you mentioned in yours previous thread
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757
leave the file as stream and convert it with a fdl which has fixed records:
$ CONVERT/FDL=SYS$INPUT
RECORD
FORMAT FIXED
SIZE 50
^Z
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 10:38 PM
тАО07-11-2005 10:38 PM
Re: CONVERT Utility
check out my reply to http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757
That /TRUN is only needed if you alterred the file attributes.
The truncate works by reading the input file with simple sequential $GET calls and only $PUTting the maximum record size number of bytes into the output file. It is only in effect for output files with an MRS attribute (which is implied by RFM=FIX).
For fixed length records it is mostly used in conjuction with /PAD
hth,
Hein.
That /TRUN is only needed if you alterred the file attributes.
The truncate works by reading the input file with simple sequential $GET calls and only $PUTting the maximum record size number of bytes into the output file. It is only in effect for output files with an MRS attribute (which is implied by RFM=FIX).
For fixed length records it is mostly used in conjuction with /PAD
hth,
Hein.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP