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



How comfortable are you with RPG?

Using a variable length string and concatenation to biuld up the CHGJOBD
command in an RPG program, then calling QCMDEXC, should do the job you
require. This should be less messy than lots of CL variables.

Syd


Srinivasan, Rajan wrote:

Thanks a lot for your quick reponse.
I can certainly build the strig or even as seperate variable. The
probability is 25 times. In other words, actuall list may vary from 1 to 25.

I need to have 25 different CHGJOBD command based on the above probabilty.

I was wondering if there a way I can avoid 25 different CHGJOBD command.

Thanks again

rAj



-----Original Message-----
From: Finucci Domenico [mailto:Domenico.Finucci@Fiditalia.it]
Sent: Thursday, September 26, 2002 8:50 AM
To: 'midrange-l@midrange.com'
Subject: R: JOBD...change initial Library List ( INLLIBL )


I suppose you will need to dynamically build a string such as:
CHGJOBD JOBD(Name) INLLIBL(&FirstLib &SecondLib &ThirdLib) stopping when
&xxxLib is blank
IN order to parse the library list, it's made simple by  considering that
you will parse with a 10-char step.

Sincerely

Domenico Finucci
Fiditalia , Milano, 02- 4301-2494


-----Messaggio originale-----
Da: Srinivasan, Rajan [mailto:Rajan.Srinivasan@henryschein.com]
Inviato: giovedì 26 settembre 2002 14.34
A: 'midrange-l@midrange.com.'
Oggetto: JOBD...change initial Library List ( INLLIBL )



Hello,
        We are in a situation to alter the  Libary list  in the  JOBD.  We
need to remove 3 to 4 libraries, and add 1 library to the library list (
INLLIBL ).

         We have to do for almost 5000 + jobd's. Instead of doing it
manually, I am looking for a way to change on the fly by writting a program.

          I can retrive the value of the JOBD's  library list, and I can
manipulate the string of  275 length, and change accordingly the string or
each bucket. But,  since the CHGJOBD  does not accept the string or one
variable ( also it does not also accept blank in the variable).

         If anybody give me some suggestion, on how to change the JOBD'S
Library list on the fly, it will be of very useful.

        Thanks a lot

rAj




The sender believes this E-mail was free of any virus or malicious code when
sent. By reading the message, the recipient accepts full responsibility for
taking protective action about viruses and other defects. The sender's
employer is not liable for any damage associated with receiving this E-Mail.
The information in this E-mail is Confidential and may be legally
privileged. Access to this E-Mail by other than addressee(s) is unauthorized
and may be unlawful.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



The sender believes this E-mail was free of any virus or malicious code when
sent. By reading the message, the recipient accepts full responsibility for
taking protective action about viruses and other defects. The sender's
employer is not liable for any damage associated with receiving this E-Mail.
The information in this E-mail is Confidential and may be legally
privileged. Access to this E-Mail by other than addressee(s) is unauthorized
and may be unlawful.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




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.