View previous topic :: View next topic
|
Author |
Message |
sudha_shanmughan Currently Banned New User
Joined: 20 Feb 2007 Posts: 9 Location: chennai
|
|
|
|
HI ALL,
Can anyone say how to copy a particular location from a PS to another ps. |
|
Back to top |
|
|
praveenibm
New User
Joined: 24 Jul 2006 Posts: 5 Location: pune
|
|
|
|
//PSCOPY JOB 'IBMMFS','MAC',CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=x.y.PS,DISP=SHR
//SYSUT2 DD DSN=x.y.PSCOPY,DISP=SHR
//SYSIN DD DUMMY
//
Regards |
|
Back to top |
|
|
sudha_shanmughan Currently Banned New User
Joined: 20 Feb 2007 Posts: 9 Location: chennai
|
|
|
|
Hi
Thank you for ur reply.i think this is copying a whole from one ps to another.i want only the particular lines to be copied. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
You can try FILEAID copy which has lot of options in this you can specify the starting line number from which the records should be copied, how many lines to skip etc. |
|
Back to top |
|
|
smiley Warnings : 1 New User
Joined: 08 Feb 2006 Posts: 27
|
|
|
|
you can use SORT/SKIP/COUNT |
|
Back to top |
|
|
sudha_shanmughan Currently Banned New User
Joined: 20 Feb 2007 Posts: 9 Location: chennai
|
|
|
|
HI
i didnt get u.can u explain how to use sort, skip and count in jcl. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Sudha,
Please restate ur problem while specifying i/p & o/p.
It will help us to resolve ur problem |
|
Back to top |
|
|
sudha_shanmughan Currently Banned New User
Joined: 20 Feb 2007 Posts: 9 Location: chennai
|
|
|
|
hi,
The problem is i want to copy few lines from existing sequential file to another existing sequential file.
how can i do this using jcl? |
|
Back to top |
|
|
prav_06 Warnings : 1 Active User
Joined: 13 Dec 2005 Posts: 154 Location: The Netherlands
|
|
|
|
Sudha,
U can do this via JCL , but u need to know the position or the value of a record inside the input file to do this can u please clarify that.
Thamilzan. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Will you please tell us what are the criteria types (values, position etc.)?
O. |
|
Back to top |
|
|
sudha_shanmughan Currently Banned New User
Joined: 20 Feb 2007 Posts: 9 Location: chennai
|
|
|
|
hi
i want to copy from column no 1133 to 1167 from one physical sequential file to another ps |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
I am assuming that u want to copy from 1133 to 1167( 35 bytes) to o/p
files first to 35 th position.
You can use following sort card in ur sort job
Code: |
//SYSIN DD *
OPTION COPY
OUTFIL OUTREC=(1:1133,35)
/* |
|
|
Back to top |
|
|
sudha_shanmughan Currently Banned New User
Joined: 20 Feb 2007 Posts: 9 Location: chennai
|
|
|
|
hi ekta,
i got the exact answer.thanks for your quick response. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Sudha,
Quote: |
i got the exact answer |
To get exact answer the problem must be clearly defined |
|
Back to top |
|
|
|