Focal Point
[SOLVED] issue with DYNAM COPY

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

August 22, 2017, 02:40 PM
wdusbank
[SOLVED] issue with DYNAM COPY
In FOCUS 7.7.03 I'm trying to make a copy of the current GDG of a file using DYMAN COPY.
The issue I have, is that it not only copies the current GDG, but it copies ALL of them into the 1 file. If I use +0 I get a syntax error, and if I use the DYNAM COPYDD command I get a syntax error. Am I missing a parm or?

DYNAM COPY ABC.XBASE.CURRENT(0) Y123.USERID.XBASE.DATA

This message has been edited. Last edited by: FP Mod Chuck,


WF 8.2.01M, MF MVS 7.6.5
August 22, 2017, 03:16 PM
Francis Mariani
Have you tried first allocating the files using DYNAM ALLOC, then using DYNAM COPY with the DD names instead of the DSN names?

DYNAM ALLOC DD INFILE1  DS ABC.XBASE.CURRENT(0) SHR REUSE
DYNAM ALLOC DD OUTFILE1 DS Y123.USERID.XBASE.DATA SHR REUSE
DYNAM COPY INFILE1 TO OUTFILE1



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 23, 2017, 08:58 AM
wdusbank
Thank You. That worked!


WF 8.2.01M, MF MVS 7.6.5
August 23, 2017, 09:26 AM
Francis Mariani
That's great! I still remember my mainframe stuff from decades ago.

Please edit your original post and change the title to:

[SOLVED] issue with DYNAM COPY


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server