View previous topic :: View next topic
|
Author |
Message |
Avinash Kumar Warnings : 1 New User
Joined: 20 Feb 2007 Posts: 9 Location: Noida
|
|
|
|
Hi Friends.
Can the utility FILEAID used in fileaid tool environment be used separately means out of the fileaid environment as an independent JCL-job for copying datasets?
Thanks. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
Yes we can run fileaid in batch to copy datasets |
|
Back to top |
|
|
Avinash Kumar Warnings : 1 New User
Joined: 20 Feb 2007 Posts: 9 Location: Noida
|
|
|
|
Thanks Ekta. But it would be great if u post an example of it. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Fileaid gives you JCL automatically. Why dont you try this -
Goto fileaid->utilities->copy. Provide old and new dataset names. Give the execution information as B (for batch). Provide necessary info in the following screen and give JCL to edit the generated JCL. |
|
Back to top |
|
|
nirenchan
New User
Joined: 21 Jul 2005 Posts: 23 Location: USA
|
|
Back to top |
|
|
pcoreddy
New User
Joined: 14 Mar 2007 Posts: 24 Location: Mysore
|
|
|
|
? Copy dataset - one to one
//STEPCOPY EXEC PGM=FILEAID
//DD01 DD DSN=G1SG00AT.INPUT1,DISP=SHR
//DD01O DD DSN=G1SG00AT.OUTPUT1,DISP=OLD
//DD02 DD DSN=G1SG00AT.INPUT2,DISP=SHR
//DD02O DD DSN=G1SG00AT.OUTPUT2,DISP=OLD
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSTOTAL DD SYSOUT=*
//SYSIN DD DUMMY or code COPY as instream
Here by default SYSIN parameter is 'COPY'. Copy is done from DD01 to DD01O although DD02 and DD02O are coded.
i think this is sufficient for that |
|
Back to top |
|
|
|