- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Problem with results -trying to OPEN/READ and ...
Operating System - OpenVMS
1752805
Members
5642
Online
108789
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
тАО01-16-2004 02:47 AM
тАО01-16-2004 02:47 AM
Re: Problem with results -trying to OPEN/READ and then WRITE output file
Cathy,
I understand only a little of your problem so I can only hint about some tips.
You can add any control code in form of
$ FF[0,8]=12
and write it as
$ WRITE FF
Notice is simplest write only FF without other field but this means you write FF followed by CR+LF (end of line)
Loot at this example:
$! Create a FDL file with my characteristic
$ ANALYZE/RMS/FDL/OUT=TMP.FDL
$! Now I create a empty file
$ CREATE/FDL=TMP.FDL
$! Now open files (look for output file!)
$ OPEN/READ SRC
$ OPEN/APPEND TGT
$! Set up Form Feed code
$ FF[0,8]=12
$! Read loop
$MLOOP:
$ READ SRC SRCLINE/END=EXIT_LOOP
$! Now evaluate SRCLINE in TGTLINE
...
$ IF (eop_condition)
$ THEN
$! write FF followed by new line to avoid
$! CR+LF; TGTLINE cannot exceed 254 bytes
$! see /SYMB differences
$ WRITE TGT FF,TGTLINE
$ ELSE
$ WRITE TGTLINE
$ ENDIF
$ GOTO MLOOP
$EXITLOOP:
$! close with last FF
$ WRITE TGT FF
... etc.
H.T.H.
Antoniov
I understand only a little of your problem so I can only hint about some tips.
You can add any control code in form of
$ FF[0,8]=12
and write it as
$ WRITE
Notice is simplest write only FF without other field but this means you write FF followed by CR+LF (end of line)
Loot at this example:
$! Create a FDL file with my characteristic
$ ANALYZE/RMS/FDL
$! Now I create a empty file
$ CREATE
$! Now open files (look for output file!)
$ OPEN/READ SRC
$ OPEN/APPEND TGT
$! Set up Form Feed code
$ FF[0,8]=12
$! Read loop
$MLOOP:
$ READ SRC SRCLINE/END=EXIT_LOOP
$! Now evaluate SRCLINE in TGTLINE
...
$ IF (eop_condition)
$ THEN
$! write FF followed by new line to avoid
$! CR+LF; TGTLINE cannot exceed 254 bytes
$! see /SYMB differences
$ WRITE TGT FF,TGTLINE
$ ELSE
$ WRITE TGTLINE
$ ENDIF
$ GOTO MLOOP
$EXITLOOP:
$! close with last FF
$ WRITE TGT FF
... etc.
H.T.H.
Antoniov
Antonio Maria Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2004 02:48 AM
тАО01-16-2004 02:48 AM
Re: Problem with results -trying to OPEN/READ and then WRITE output file
To insert the form feed
$ FF[0,8] = 12 ! define symbol for form feed
then use it
$ WRITE SYS$OUTPUT "''FF'Page 1"
$ FF[0,8] = 12 ! define symbol for form feed
then use it
$ WRITE SYS$OUTPUT "''FF'Page 1"
____________________
Purely Personal Opinion
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2004 04:18 AM
тАО01-16-2004 04:18 AM
Re: Problem with results -trying to OPEN/READ and then WRITE output file
> Jan 16, 2004 15:18:11 GMT N/A: Question Author
>--
> Me again... I still have not had much success.
> I tried to add "carriage_control print" to the record section of the FDL and received an incompatibility message.
> Maybe that type of carriage control is permitted with the other qualifiers????
Well Cathy, that's just not accceptable. :-)
You can do better. It can and will work, so there is a small remaining misunderstanding that needs to be resolved.
I'm convinced that you can figure this out in less time then it takes all of us to second guess you.
Just print a couple of those FDL files and let the data sink in. It's not all that hard, and well documented.
If you do need further help PLEASE help us to help you by providing accurate, exact error message, and critical portions of the commands and/or command files that you know play a role.
So please, attach and input and edited FDL so we can see where the error was made instead of guessing!
(attach is needed instead of text include because this forum stuff makes such a mess of spacing that it makes it unreadable otherwise)
Hein.
>--
> Me again... I still have not had much success.
> I tried to add "carriage_control print" to the record section of the FDL and received an incompatibility message.
> Maybe that type of carriage control is permitted with the other qualifiers????
Well Cathy, that's just not accceptable. :-)
You can do better. It can and will work, so there is a small remaining misunderstanding that needs to be resolved.
I'm convinced that you can figure this out in less time then it takes all of us to second guess you.
Just print a couple of those FDL files and let the data sink in. It's not all that hard, and well documented.
If you do need further help PLEASE help us to help you by providing accurate, exact error message, and critical portions of the commands and/or command files that you know play a role.
So please, attach and input and edited FDL so we can see where the error was made instead of guessing!
(attach is needed instead of text include because this forum stuff makes such a mess of spacing that it makes it unreadable otherwise)
Hein.
- « Previous
-
- 1
- 2
- Next »
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