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



They are 2 question here. Here is a suggestion for the first one (how to go to 
batch):

If all the RPG program does is input the dates to use for the report, I would 
suggest the instead of calling the 2nd CL, it could return the date selected as 
parameters to the 1rst CL that then could call or submit the 2nd CL.

But beware (this may answer your second question about decimal errors) when you 
submit a call to batch, all numerical values will be considered packed, 15 
digit with 5 decimal position as opposed to the interactive call where the 
defenition of the variable (DCL in CL) is respected. To solve this issue, you 
can find numerous idea in the archive.

Hope this help

Denis Robitaille
Directeur services technique TI
819 363 6130

SUPPORT
Jour (EST) Daytime : 819-363-6134
En-dehors des heures (EST) After hour : 819-363-6158
Network Status : 819-363-6157

>>> SimaFrog@xxxxxxxxxx 2004-03-03 08:03:29 >>>
Hi - I am working on a report that used CL and RPG programs. The first CL calls 
an RPG that prompts for date. This RPG Currently then calls a second CL, which 
does the rest of the job. I would like this call to to go into Batch instead of 
currently as interactive without having to code a new CL that will simply 
Submit the second CL, Is there a way to do this? 
Another problem I noticed is that when I did create the additional CL to submit 
the second CL, I entered dates (from *to) twice and a second job went onto the 
job queue. When this second job ran it bombed on a data decimal error. Do I 
need to close Files or something else to ensure that this wouldn't happen again?
Thanks,
Rob


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx 
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l 
or email: RPG400-L-request@xxxxxxxxxxxx 
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





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.