- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Please help : WRITE command problem
Operating System - Microsoft
1748146
Members
3643
Online
108758
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
тАО06-17-2003 02:57 AM
тАО06-17-2003 02:57 AM
Please help : WRITE command problem
Hi
I run a Compaq Fortran (6.6) program, that write some data in a text file.
One of the data is a string. But, when editing the text file, it appears that every data with length > 60 characters is write on two or more lines.
Is there a max length for data when using
WRITE(5,*) (for example) ?
Thanks for Help.
Lionel
I run a Compaq Fortran (6.6) program, that write some data in a text file.
One of the data is a string. But, when editing the text file, it appears that every data with length > 60 characters is write on two or more lines.
Is there a max length for data when using
WRITE(5,*) (for example) ?
Thanks for Help.
Lionel
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 03:02 AM
тАО06-17-2003 03:02 AM
Re: Please help : WRITE command problem
Hi,
If you use od -tax textfilename, can you see any CR/LF characters? If not, then the line wrapping may be caused by whatever you're using to display/edit the file.
regards,
Darren.
If you use od -tax textfilename, can you see any CR/LF characters? If not, then the line wrapping may be caused by whatever you're using to display/edit the file.
regards,
Darren.
Calm down. It's only ones and zeros...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 04:19 AM
тАО06-17-2003 04:19 AM
Re: Please help : WRITE command problem
Thanks,
but I've opened the text file with 3 different editors (Word, NotPad and UltraEdit), the file appears the same. In Word, I can see CR/LF characters.
Here is a sample of my program :
PARAMETER (NMAX=500)
CHARACTER*15 UFEEDSo(NMAX)
DO 1005 J=1,NfeedsO
strFEEDSO=TRIM(strFEEDSO)//TRIM(UFEEDSo(J))//';'
1005 CONTINUE
WRITE(NFOUT,*) I,';','UNIT',';',TRIM(UID(I)),';',
+ 'ProductData',';',TRIM(strFEEDSO)
where NfeedsO >=1
So, it seems that strFEEDSO contains the entire value (150 length string), but Write command stores the value on 2 lines...
The problem is important for me, because I'm working on an excel macro that extract data from this text file. So, if the data are not correctly stored, my macro crash.
Thanks again for help.
Lionel
but I've opened the text file with 3 different editors (Word, NotPad and UltraEdit), the file appears the same. In Word, I can see CR/LF characters.
Here is a sample of my program :
PARAMETER (NMAX=500)
CHARACTER*15 UFEEDSo(NMAX)
DO 1005 J=1,NfeedsO
strFEEDSO=TRIM(strFEEDSO)//TRIM(UFEEDSo(J))//';'
1005 CONTINUE
WRITE(NFOUT,*) I,';','UNIT',';',TRIM(UID(I)),';',
+ 'ProductData',';',TRIM(strFEEDSO)
where NfeedsO >=1
So, it seems that strFEEDSO contains the entire value (150 length string), but Write command stores the value on 2 lines...
The problem is important for me, because I'm working on an excel macro that extract data from this text file. So, if the data are not correctly stored, my macro crash.
Thanks again for help.
Lionel
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