MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to put Member name on each record beginning

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
maxisnowhere
Beginner


Joined: 25 May 2005
Posts: 59
Topics: 20

PostPosted: Wed Jan 11, 2006 10:33 am    Post subject: How to put Member name on each record beginning Reply with quote

Hello!
I want to copy all the memner of a library in a sequential file, putting at the beginning of each record, the name of the member where it is.

With IEBPTPCH i got all the member, but i really don't know how to put the member name on the top.

Thx for all help !!
Max
_________________
Maxisnowhere
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Jan 11, 2006 10:40 am    Post subject: Reply with quote

Quote:

With IEBPTPCH i got all the member, but i really don't know how to put the member name on the top.


maxisnowhere,

You can use PUNCH operator of IEBPTPCH which will put the member at the top.

try this

Code:

//STEP0100 EXEC PGM=IEBPTPCH
//SYSUT1   DD DSN=YOUR PDS,
//            DISP=SHR
//SYSUT2   DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *
    PUNCH TYPORG=PO
/*

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
maxisnowhere
Beginner


Joined: 25 May 2005
Posts: 59
Topics: 20

PostPosted: Thu Jan 12, 2006 2:39 am    Post subject: Reply with quote

Ok this will put the member name on the top of the member. Thank you.
I would libe to have the name of the member at the beginning of each record.

For examle I have the mambere MEMBERONE with rows:

AAAAAA
BBBBBB
CCCCC

I would like to obtain:
MEMBERONEAAAAAA
MEMBERONEBBBBBB
MEMBERONECCCCC

Thx4all

max
_________________
Maxisnowhere
Back to top
View user's profile Send private message
haatvedt
Beginner


Joined: 14 Nov 2003
Posts: 66
Topics: 0
Location: St Cloud, Minnesota USA

PostPosted: Sun Jan 15, 2006 3:30 am    Post subject: Reply with quote

I use a File-Aid step after the IEBPTPCH step to accomplish this. You could certainly use other programming languages to accomplish this. If you have File-Aid and want an example of this, send me an email.

Chuck H.
_________________
Chuck Haatvedt

email --> clastnameatcharterdotnet

(replace lastname, at, dot with appropriate
characters)
Back to top
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Sun Jan 15, 2006 5:15 pm    Post subject: Reply with quote

File-Aid can provide quick and simple solutions to things like this, however I prefer to steer clear of 3rd-Party products like File-Aid for things like this. DFSORT would be a better choice, simply because you are likely to find DFSORT whereever you go, and it is highly unlikely that the product will ever be removed from your shop.

Why? For example (in our shop), over the years programmers coded all sorts of things using File-Aid. Now however... our shop has done a deal with IBM and File-Aid is (in the process of) being replaced by File-Manager (IBMs answer to File-Aid). And so the File-Aid stuff now needs to be urgently replaced. A right royal pain. And do you think that I'm gonna write File-Manager equivalents for the File-Aid stuff. No way Jose! And risk having to re-write the stuff yet again in x number of years? Nope. Just stick to using the standard IBM utilities, and you won't need to worry about rewriting the stuff ever again.
Back to top
View user's profile Send private message
maxisnowhere
Beginner


Joined: 25 May 2005
Posts: 59
Topics: 20

PostPosted: Mon Jan 16, 2006 4:16 am    Post subject: Reply with quote

We don't have File-Aid on our system, so I will use the DFSORT, can you show me how?
thx
_________________
Maxisnowhere
Back to top
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Mon Jan 16, 2006 4:52 am    Post subject: Reply with quote

Have a look at all the examples on ICETOOL (part of DFSORT) given by Frank Yaeger. Then you will get some idea of how to proceed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group