IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to copy a PS file to another PS file?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nagarajan_guru

New User


Joined: 21 Mar 2007
Posts: 6
Location: chennai

PostPosted: Wed Nov 14, 2007 5:17 pm
Reply with quote

By making use of IEBCOPY utility, we can copy a PDS file to another PDS file. Could you please suggest any utility which copies a PS file to another PS file?

Naga G.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Nov 14, 2007 5:21 pm
Reply with quote

Quote:
Could you please suggest any utility which copies a PS file to another PS file...?


IEBGENER, IDCAMS, SORT, ...
Back to top
View user's profile Send private message
VinayCM

New User


Joined: 06 Nov 2007
Posts: 36
Location: Bengaluru

PostPosted: Thu Nov 15, 2007 12:31 pm
Reply with quote

Better go for IEBGENER......
Back to top
View user's profile Send private message
dilipbiradar

New User


Joined: 12 Jan 2007
Posts: 18
Location: Pune (India)

PostPosted: Thu Nov 15, 2007 1:53 pm
Reply with quote

Hi,

Please use FILEAID tool if available........It will be just 1 sec of work ................!

Best of luck !!

Thanks,
Dilip
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 15, 2007 4:02 pm
Reply with quote

dilipbiradar -

Are you sure FileAid will be faster then SORT?

O.
Back to top
View user's profile Send private message
jmreddymca
Warnings : 1

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Thu Nov 15, 2007 5:40 pm
Reply with quote

yes better you use FILE-AID
JUST 5 SEC WORK.
IN FRONT OF PS YOU JUST USE F33
IT WILL ASK DESTINATION DS NAME
GIVE & PRESS ENTER, ITS OVER
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Nov 15, 2007 5:47 pm
Reply with quote

Reddy,

Quote:
JUST 5 SEC WORK.

Are you sure you can copy millions of records (say 5M or 6M) in 5 seconds?

Also learn to post in CAPS OFF mode.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Nov 15, 2007 5:48 pm
Reply with quote

Quote:
JUST 5 SEC WORK.

regardless of number of records file holds?

I agree that File-Aid is easy to use, however can't say it is faster than
SORT/IEBGENER..
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Nov 15, 2007 5:53 pm
Reply with quote

Reddy,

If you copy a large file in ONLINE mode...... FA locks your screen and you can 'enjoy the time'.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Nov 15, 2007 6:15 pm
Reply with quote

Code:
FA locks your screen and you can 'enjoy the time'.
good idea.... icon_idea.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Nov 16, 2007 11:02 am
Reply with quote

Hi,

below are some statistics on the use of various utilities to copy a file.

The file contained 3150856 records with an LRECL of 80.

Gerry

Code:

                                       --TIMINGS (MINS.)--            ----PAGING
STEPNAME PROCSTEP    RC   EXCP   CONN    TCB    SRB  CLOCK   SERV  PG  PAGE  SWA
SORT                 00   2800  65627    .03    .00     .8  21626   0     0     

FILEAID              00   328K  75322    .09    .01    1.4   214K   0     0

IEBGENER             00   328K   137K    .17    .07    3.5   285K   0     0

IDCAMS               00   328K  84703    .07    .02    1.8   211K   0     0
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 16, 2007 2:14 pm
Reply with quote

Gerry,

Thanks for sharing the info.

Just one doubt, 'were all the steps/jobs ran under similar conditions'?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Nov 20, 2007 9:55 am
Reply with quote

Murali,
yes all jobs were run under the same conditions.

Gerry
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Nov 20, 2007 11:01 pm
Reply with quote

Hello,

FWIW, i believe the "5 secs" was the human time needed to setup/execute rather than the machine time required for the copy icon_smile.gif

Also, FWIW, everywhere i've been that tested "copy speed" determined that using the sort product to copy files is the fastest and least resources used way to go. Many systems look at IEBGENER executions and if the process is simply a copy, the sort is invoked instead of IEBGENER.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Nov 21, 2007 12:31 am
Reply with quote

Just to add - that's why many shops use DFSORT's ICEGENER instead of IEBGENER.

O.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Nov 21, 2007 2:38 am
Reply with quote

Quote:
Many systems look at IEBGENER executions and if the process is simply a copy, the sort is invoked instead of IEBGENER.


DFSORT's ICEGENER can be installed to automatically use DFSORT copy if appropriate (or IEBGENER if DFSORT copy can't be used) when IEBGENER is invoked.
Back to top
View user's profile Send private message
MALLIKARJUN.KUMMITHA
Warnings : 1

New User


Joined: 25 Oct 2007
Posts: 7
Location: india

PostPosted: Wed Nov 21, 2007 2:43 pm
Reply with quote

u can use utility iebgener and short card
//sysin dd *
sort field = copy

thanks
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Nov 21, 2007 3:05 pm
Reply with quote

Malli,

Quote:
//sysin dd *
sort field = copy


You have posted an incomplete sort card and with a wrong syntax.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Nov 21, 2007 3:07 pm
Reply with quote

Quote:
u can use utility iebgener and short card
//sysin dd *
sort field = copy


please.... when posting give the CORRECT info...
IEBGENR NEVER TOOK A "SORT" CONTROL STATEMENT

Your view of things is a little bit confused/confusing...

when installing sort( DFSORT )
SORT is aliased to ICEMAN
ICETOOL is just itself
ICEGENER is just itself
SORTGENR is an alias of ICEGENER

it is a user choice ( please Frank correct me if I am wrong )
to alias IEBGENER to ICEGENER or ....

if IEBGENER is not aliased to a sort component Your suggestion will not work

it is possible that syncsort has the same approach
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Nov 21, 2007 11:54 pm
Reply with quote

Quote:
it is a user choice ( please Frank correct me if I am wrong )
to alias IEBGENER to ICEGENER or ....


That's right. The system programmer at each site decides whether or not to install ICEGENER as an automatic replacement for IEBGENER. PGM=ICEGENER will always invoke ICEGENER. PGM=IEBGENER will invoke ICEGENER if it has been installed as a replacement for IEBGENER; otherwise it will invoke IEBGENER.

I have no idea what point MALLIKARJUN.KUMMITHA was trying to make so I can't comment on it.

Note that the use of SYSIN control statements will cause ICEGENER to invoke IEBGENER.

If you want to use DFSORT control statements with ICEGENER, you can do that with //DFSPARM, e.g.

Code:

//S1 EXEC PGM=ICEGENER
...
//SYSIN DD DUMMY
//DFSPARM DD *
   INCLUDE COND=(5,2,CH,EQ,C'AB')


Of course this also works with PGM=IEBGENER when ICEGENER has been installed as an automatic replacement for IEBGENER.
Back to top
View user's profile Send private message
MALLIKARJUN.KUMMITHA
Warnings : 1

New User


Joined: 25 Oct 2007
Posts: 7
Location: india

PostPosted: Thu Nov 22, 2007 10:25 am
Reply with quote

Copy using sort utility:
1) // job.---------
//step 1 exec pgm=sort
//sortin dd dsn=a.b.file1, disp=shir
//sortout dd dsn=a.b.file2, disp=shir
//sortwk1 dd unit=disk
//sortwk2 dd unit=disk
//sysout dd sysout=*
//sysprint dd sysout=*
//Sysin dd*
sort fields=copy
/*
or

2 way


//job cards----

/step 1 exec pgm=iebgener
//sortin dd dsn=a.b.file1, disp=shir
//sortout dd dsn=a.b.file2, disp=shir
//sortwk1 dd unit=disk
//sortwk2 dd unit=disk
//sysout dd sysout=*
//sysprint dd sysout=*
//Sysin dd*
/*
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Nov 22, 2007 10:43 pm
Reply with quote

MALLIKARJUN,

Your JCL is a mess (lots of unnecessary or incorrect dd statements and syntax errors). It should be:

Code:

//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=a.b.file1,DISP=SHR
//SORTOUT DD DSN=a.b.file2,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSIN DD *
   SORT FIELDS=COPY
/*


and

Code:

//STEP2 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=a.b.file1,DISP=SHR
//SYSUT2 DD DSN=a.b.file2,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top