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

Copy PS to PDS member


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

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Sat Apr 25, 2009 12:53 am
Reply with quote

Hi ,
I have a PS with many records. The first 5 digit of the record shows the record belong to what group(PDS member).
eg)
a00101 ******
a00101 ******
a00101 ******
a00201 ******
a00201 ******
a00201 ******

Now based on the first 5 digit of the records I have to create member and want to copy corresponding records to that member.

Thanks
subash
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Apr 25, 2009 1:25 am
Reply with quote

Sounds like the same process that this recent topic would use.
Back to top
View user's profile Send private message
subbuy2k

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Sat Apr 25, 2009 2:20 am
Reply with quote

Hi Superk,
No this is different from what was posted already. I have already tried that but it didnt work for my requirement.
Thanks.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sat Apr 25, 2009 2:39 am
Reply with quote

You could use something like this IEBUPDTE example to create and insert the members.
Code:
//UPDATE   JOB  ...
//STEP1    EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD  SYSOUT=A
//SYSUT2   DD  DSNAME=OUTLIB,UNIT=disk,DISP=(NEW,CATLG),
//             VOLUME=SER=111112,SPACE=(TRK,(50,,10)),
//             DCB=(RECFM=F,LRECL=80,BLKSIZE=80)
//SYSIN    DD  DATA
./        ADD   NAME=MEMB1,LEVEL=00,SOURCE=0,LIST=ALL
(Data statements, sequence numbers in columns 73 through 80)
./ ADD NAME=MEMB2,LEVEL=00,SOURCE=0,LIST=ALL
(Data statements, sequence numbers in columns 73 through 80)
./ ADD NAME=MEMB3,LEVEL=00,SOURCE=0,LIST=ALL
(Data statements, sequence numbers in columns 73 through 80)
./ ENDUP /*

The ADDs and data could be easely generated by sort to a temp file that will be the IEBUPDTE's SYSIN.
Back to top
View user's profile Send private message
subbuy2k

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Mon Apr 27, 2009 9:12 am
Reply with quote

In the above IEBUPDTE example How to check the first 5 bytes? I want to copy to new member based on the first 5 bytes only.
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: Mon Apr 27, 2009 10:25 am
Reply with quote

Hello,

Quote:
In the above IEBUPDTE example How to check the first 5 bytes?

One of these:
Code:
./ ADD NAME=MEMB2,LEVEL=00,SOURCE=0,LIST=ALL
would be created each time the first 5 bytes change.
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top