× 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.



We do a similar thing where individual workfiles are created using the
AS/400 job number and the rpg uses the individual workfile instead of the
'main' file it was compiled with.

The workfile name is built in a CL variable, and before calling the rpg the
'main' file is overridden to the workfile name using OVRDBF:

OVRDBF     FILE(SMW26) TOFILE(&LIB/&FILW)

The work files are then deleted at the end of the CL.


Regards

Gary Holliday (first timer!)
-------------------------------------------------
Gary.Holliday@Smedleys.co.uk
Smedleys Foods
Wardentree Lane
Pinchbeck, Spalding
Lincs. PE11 3UY


-----Original Message-----
From: Quazy [mailto:quazy@SoftHome.net]
Sent: 13 October 2000 15:18
To: rpg400-l@midrange.com
Subject: Variable file name in rpg /or cl


I need to have a cl program pass a variable to either a rpg or cl program.

This variable is the file name that the program needs to read from.

Any suggestions on how to do this???


Thanks

Chris 

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


This e:Mail and any files transmitted with it are confidential and intended
solely for the use of the individual to whom it is addressed.
If you have received this e-mail in error please contact Matthew Middleton
or Gary Holliday immediately by telephone on 01775 710789 or on e-mail at
Smedleys.IT@Smedleys.co.uk
Any views or opinions presented are solely those of the author and do not
necessarily represent those of Smedleys Foods.
Unauthorised publication, use, dissemination, forwarding, printing or
copying of this e-mail and its associated attachments is strictly
prohibited. 


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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 ...


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.