Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 6966
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: 10210
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us