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 a particular location from a PS to another PS

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

New User


Joined: 20 Feb 2007
Posts: 9
Location: chennai

PostPosted: Wed Feb 21, 2007 11:54 am    Post subject: Copy a particular location from a PS to another PS
Reply with quote

HI ALL,

Can anyone say how to copy a particular location from a PS to another ps.
Back to top
View user's profile Send private message

praveenibm

New User


Joined: 24 Jul 2006
Posts: 5
Location: pune

PostPosted: Wed Feb 21, 2007 12:00 pm    Post subject: Hi The copy can be done...
Reply with quote

//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
View user's profile Send private message
sudha_shanmughan
Currently Banned

New User


Joined: 20 Feb 2007
Posts: 9
Location: chennai

PostPosted: Wed Feb 21, 2007 12:07 pm    Post subject: THANK U
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Feb 21, 2007 12:37 pm    Post subject:
Reply with quote

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
View user's profile Send private message
smiley
Warnings : 1

New User


Joined: 08 Feb 2006
Posts: 27

PostPosted: Wed Feb 21, 2007 12:55 pm    Post subject:
Reply with quote

you can use SORT/SKIP/COUNT
Back to top
View user's profile Send private message
sudha_shanmughan
Currently Banned

New User


Joined: 20 Feb 2007
Posts: 9
Location: chennai

PostPosted: Wed Feb 21, 2007 1:57 pm    Post subject: Re: Copy a particular location from a PS to another PS
Reply with quote

HI
i didnt get u.can u explain how to use sort, skip and count in jcl.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Feb 21, 2007 2:01 pm    Post subject:
Reply with quote

Hi Sudha,

Please restate ur problem while specifying i/p & o/p.
It will help us to resolve ur problem
Back to top
View user's profile Send private message
sudha_shanmughan
Currently Banned

New User


Joined: 20 Feb 2007
Posts: 9
Location: chennai

PostPosted: Wed Feb 21, 2007 2:07 pm    Post subject:
Reply with quote

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
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Wed Feb 21, 2007 2:23 pm    Post subject:
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Feb 21, 2007 3:05 pm    Post subject:
Reply with quote

Will you please tell us what are the criteria types (values, position etc.)?

O.
Back to top
View user's profile Send private message
sudha_shanmughan
Currently Banned

New User


Joined: 20 Feb 2007
Posts: 9
Location: chennai

PostPosted: Wed Feb 21, 2007 3:18 pm    Post subject:
Reply with quote

hi

i want to copy from column no 1133 to 1167 from one physical sequential file to another ps
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Feb 21, 2007 3:29 pm    Post subject:
Reply with quote

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
View user's profile Send private message
sudha_shanmughan
Currently Banned

New User


Joined: 20 Feb 2007
Posts: 9
Location: chennai

PostPosted: Wed Feb 21, 2007 3:36 pm    Post subject:
Reply with quote

hi ekta,

i got the exact answer.thanks for your quick response.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Thu Feb 22, 2007 10:06 am    Post subject:
Reply with quote

Hi Sudha,


Quote:
i got the exact answer


To get exact answer the problem must be clearly defined
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 copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
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 1 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


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