Author |
COPY specific number of records |
leonid
Member
Posts: 4
Joined: 15.08.17 |
Posted on April 05 2018 07:29 |
|
|
Please navigate how to copy specific number of records (let's say 7 records) from FILEA to FILEB. FILEB is empty. Is it possible in OpenVMS?
Edited by leonid on April 05 2018 09:40 |
|
Author |
RE: COPY specific number of records |
abrsvc
Member
Posts: 108
Joined: 12.03.10 |
Posted on April 06 2018 01:59 |
|
|
The short answer is yes. The longer and more specific response will require additional information about the file and the record selection for that transfer.
What kind of files are the source and destination files? What language would you like to use for the program to do this? Do you want to use DCL for this task? What version of OpenVMS are you running and on what hardware? Etc...
Dan |
|
Author |
RE: COPY specific number of records |
Bruce Claremont
Member
Posts: 623
Joined: 07.01.10 |
Posted on April 06 2018 03:13 |
|
|
Look at the DCL OPEN, READ, WRITE, and CLOSE commands. |
|
Author |
RE: COPY specific number of records |
leonid
Member
Posts: 4
Joined: 15.08.17 |
Posted on April 06 2018 08:35 |
|
|
abrsvc wrote:
The short answer is yes. The longer and more specific response will require additional information about the file and the record selection for that transfer.
What kind of files are the source and destination files? What language would you like to use for the program to do this? Do you want to use DCL for this task? What version of OpenVMS are you running and on what hardware? Etc...
Dan
Dan,
Both file resides in OpenVMS. FILEA and FILEB are .dat files. I need to copy first 7 records. I can use DCL. I thought there is an easy way to use COPY command, but looks like I need to crate program. Not sure about OpenVMS version. Thank you for reply.
Leo |
|