Focal Point
copy files

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9511009331

September 26, 2005, 11:52 AM
<lumen>
copy files
How can I copy one sequential dataset to another using FOCUS.
September 26, 2005, 12:09 PM
susannah
CMD COPY D:\IBI\APPS\filea.ext D:\IBI\APPS\fileb.ext /Y
Further, you can append b to a, if you want
September 27, 2005, 03:43 AM
<lumen>
quote:
Originally posted by susannah:
[qb] CMD COPY D:\IBI\APPS\filea.ext D:\IBI\APPS\fileb.ext /Y
Further, you can append b to a, if you want [/qb]
Thats great. But I want a dataset in mainframe to be copied.Can it be done in same way ?
September 27, 2005, 10:08 AM
<Steve Cowell>
Are you doing this in ISPF or from within Focus using DYNAM?
September 27, 2005, 11:44 AM
<lumen>
quote:
Originally posted by Steve Cowell:
[qb] Are you doing this in ISPF or from within Focus using DYNAM? [/qb]
Yes Iam using ISPF and TED editor for coding focus
September 27, 2005, 01:25 PM
Leah
If you are creating each file within the FOCUS environment, have you considered a DYNAM to allocate the file as 'new' at the start and then in each successive 'creation' use DYNAM to the file with 'MOD'. In other words, use the capabilities the mainframe gives you for dispostion of files. Can't give you a 'working' example in mainframe world as we no longer have the mainframe version. However, it would be similar in the webFOCUS world of using a FILEDEF to allocate a file the first time and then reallocate the same file with the ( append added for saving or holding the file with a name.
September 27, 2005, 01:48 PM
<Steve Cowell>
If the COPY_TO dataset already exists then you simply 'DYNAM COPY from_dsn to_dsn', there are a number of options in the manual.