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
 

 

How to add trailers to PDS members

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

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Wed Jun 13, 2007 2:28 pm    Post subject: How to add trailers to PDS members
Reply with quote

I have a requirement in which I need to add trailer records in present files

Mem1, mem2, mem3??..mem284 are all members of USER.NOTOTAL.PDS and all have same record structure.

New_mem1, new_mem2, new_mem3??. new_mem284 are all member of USER.TOTAL.PDS and all have same record structure.

FILE mem1 is like:
A10
B20
C10
D05

The output file new_mem1 should be:
A10
B20
C10
D05
T-45

I wrote one program to achieve this.
( this could be done using SORT but the actual total calculations are complex (not shown here) so I had to write a program. )


Now I want to do this for all other members mem2 - new_mem2, mem3 - new_mem3 ?mem284 - new_mem284.

Is it required to code 284 steps ?

Is there any way by which I can read all members of input PDS (USER.NOTOTAL.PDS) one by one and create its corresponding output member in new PDS (USER.TOTAL.PDS)?
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Jun 13, 2007 2:40 pm    Post subject:
Reply with quote

What is the "actual total calculation"?
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Wed Jun 13, 2007 2:41 pm    Post subject:
Reply with quote

I do not know how you are writing the trailer record but you can always use REXX to do such processing, which is very fast and least cumbersome.
You can find a good manual on REXX by name ikj4c310 in the public boulders.
Back to top
View user's profile Send private message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Wed Jun 13, 2007 2:51 pm    Post subject:
Reply with quote

Quote:
What is the "actual total calculation"?


The total is not mere sum of records as I have shown.It's for simplicity.

We calulate total by multiplying the numbers in records by different rate(s) which are present in other file(s).Please note ,I have to write a Cobol program for this.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Wed Jun 13, 2007 6:57 pm    Post subject: Re: How to add trailers to PDS members
Reply with quote

You'll want to use the ISPF Library Management (LM) Services. Specifically, the LMINIT, LMMLIST, LMGET, and LMPUT services.
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 Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts JCL to replace string in all PDS members bhamarekm All Other Mainframe Topics 8 Thu May 28, 2015 8:44 pm
No new posts Issue with copying PDS members to ano... Senthilkumar k CLIST & REXX 13 Mon Apr 20, 2015 1:28 pm


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