Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Copy multiple (dynamic) PS files to another PS file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
prash_infy

New User


Joined: 31 Aug 2006
Posts: 20

PostPosted: Tue Jan 19, 2010 10:03 pm    Post subject: Copy multiple (dynamic) PS files to another PS file.
Reply with quote

I have a requirement of copying multiple files which are created dynamically by a REXX code to another PS file.

Example

ABC.XYZ.File1
ABC.XYZ.File2
ABC.XYZ.File3
ABC.XYZ.File4
and so on.

Is there a way or utility to Copy ABC.XYZ.* files (number of input files may vary) to another PS files.

Thank You!
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jan 19, 2010 10:23 pm    Post subject:
Reply with quote

Hello,

As each file is created in the rexx code, also create "copy jcl" for that file. When the rexx code completes, submit the created jcl to copy the files (this would be one JOB with a separate step for each file to be copied).
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue Jan 19, 2010 10:28 pm    Post subject:
Reply with quote

or concatenated?
Back to top
View user's profile Send private message
prash_infy

New User


Joined: 31 Aug 2006
Posts: 20

PostPosted: Tue Jan 19, 2010 10:48 pm    Post subject: Reply to: Copy multiple (dynamic) PS files to another PS fil
Reply with quote

Can we use wild card for copying the files?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Tue Jan 19, 2010 10:54 pm    Post subject: Reply to: Copy multiple (dynamic) PS files to another PS fil
Reply with quote

it depends!
if You had been more specific/clear on what You want to do You might have gotten better replies!

like for example...
one to one copy, copy/append/concatenate/sort to a single file, ...

without anything more to work on I would second Dick Sherrer' s motion,
since You are already using rexx to generate the names, expand the script also to create the copy
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jan 19, 2010 10:55 pm    Post subject:
Reply with quote

Hello,

Only if you have some product installed that supports "wildcards" - you need to ask your local support what is available on your system.

JCL will not support this. . .
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Tue Jan 19, 2010 11:49 pm    Post subject:
Reply with quote

See ISPF services LMDLIST and LMCOPY. That should be enough to throw this together in about 15-20 lines of Rexx code.
Back to top
View user's profile Send private message
prash_infy

New User


Joined: 31 Aug 2006
Posts: 20

PostPosted: Wed Jan 20, 2010 12:23 am    Post subject: Reply to: Copy multiple (dynamic) PS files to another PS fil
Reply with quote

Hi enrico-sorichetti,

I have multiple files which are created in a REXX code which many vary depending upon the input. Like if input has 1 record 1 output file will be created and so on.

Requirement is to copy all the files

ABC.XYZ.File1
ABC.XYZ.File2
ABC.XYZ.File3
ABC.XYZ.File4
and so on.

to one PS file say ABC.XYZ.FINAL

Thanks for all the suggestions!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us