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

Copy a particular location from a PS to another PS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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
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: 1208
Location: Bangalore,India

PostPosted: Wed Feb 21, 2007 2:01 pm
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
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
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: 2358
Location: Israel

PostPosted: Wed Feb 21, 2007 3:05 pm
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
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: 1208
Location: Bangalore,India

PostPosted: Wed Feb 21, 2007 3:29 pm
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
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: 1208
Location: Bangalore,India

PostPosted: Thu Feb 22, 2007 10:06 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts Use Copy Utility DB2 7
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
Search our Forums:

Back to Top