× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Consolidating production source libraries/files
  • From: "L. S. Russell" <leslier@xxxxxxxxxx>
  • Date: Thu, 30 Dec 1999 16:59:30 -0600

Write an rpg program which reads the records from the member through a program
described input file
RR0QLSR has been overridden in a CL to point to the source member you want to
copy.
Read the from member in and write out to the to member, no date stamps will be
lost.
Your CL will also have to create a to source if none exists. If one does exist,
then your RPG will need
to do an update instead of a write. I'll leave the rest to you.

This version is written for RPG IV source but can easily be changed for RPG 400
source.

0045.00 IRR0QLSR   AA  01
0046.00 I                                  1  112  Dummy
0047.00 I                                  1    6  SeqNbr
0048.00 I                                  7   12  Date
0049.00 I                                 13   17  Filler
0050.00 I                                 18   18  Spec
0051.00 I                                 19  112  DataLine


***** CL TO OVERRIDE TO SOURCE MEMBER *****
0001.00              PGM        PARM(&LIB &FILE &MBR)
0002.00
0003.00              DCL        VAR(&LIB) TYPE(*CHAR) LEN(10)
0004.00              DCL        VAR(&FILE) TYPE(*CHAR) LEN(10)
0005.00              DCL        VAR(&MBR) TYPE(*CHAR) LEN(10)
0006.00
0007.00              OVRDBF     FILE(RR0QLSR) TOFILE(&LIB/&FILE) MBR(&MBR)
0008.00
0009.00              CALL       PGM(LESLIER/CVT001RL)
0010.00
0011.00              DLTOVR     FILE(RR0QLSR)
0012.00
0013.00              ENDPGM

Jon Erickson wrote:

> Sorry, it changes the source member dates which is what I'm trying to avoid.
>
> Thanks for your help.
>
> Jon A. Erickson
> Sr. Programmer Analyst
> 800.COM Inc.
> 1516 NW Thurman St
> Portland, OR  97209-2517
>
> Direct: 503.944.3613
> Fax: 503.944.3690
> Web: http://800.com
>
> -----Original Message-----
> From: John Earl [mailto:johnearl@400security.com]
> Sent: Thursday, December 30, 1999 1:42 PM
> To: MIDRANGE-L@midrange.com
> Subject: Re: Consolidating production source libraries/files
>
> Jon,
>
> Jon Erickson wrote:
> >
> > Greetings and salutations,...
> >
> > We're attempting to consolidate our production source libraries and files,
> > (e.g. AR/QRPGSRC + AP/QRPGSRC ... to PROD/QRPGSRC).  We'd like to keep all
> > the source dates in tact.
> >
> > Any ideas how to accomplish this??  TIA.
>
> CPYSRCF FROMFILE(AR/QRPGSRC) TOFILE(PROD/QRPGSRC) FROMMBR(*ALL)
>
> jte
>
> --
> John Earl
> johnearl@powertechgroup.com
> The PowerTech Group                        206-575-0711
> PowerLock Network Security              www.400security.com
> The 400 School                                www.400school.com
> --
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---

--
L. S. Russell Programmer/Analyst
Datrek Professional Bags, Inc.
2413 Industrial Drive
Springfield, TN. 37172
mailto:leslier@datrek.com
http://www.datrek.com
--


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.