× 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: SBMJOB parameter
  • From: "Simon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Thu, 27 May 99 23:22:28 +1000


Hello Ken,

It gives the submitter of the job control over whether environment variables 
are copied to the 
batch job in a similar way to the behaviour of the LDA.

Environment variables are a Unix thing (and PC's stole the idea from Unix -- 
much like 
directories and cryptic commands -- although Unix has stolen its share of stuff 
too.  The IT 
industry is renowned for making everything old new again!).

They are used to configure a user's environment.  Such things as the search 
path (library 
list), shell (environment -- *S36 or *NORMAL), initial script (initial 
program), home directory 
(current library), etc, etc, etc.  OK, I am being a bit loose with the 
parenthesized 
translations but you get the idea.

Environment variables arrived on the AS/400 with support for the Unix APIs 
(spec 1170) to make 
it easier for Unix weenies to port their code to the 400.  You can manipulate 
them from CL with 
the ADDENVVAR, RMVENVVAR, and WRKENVVAR commands (there may be others).  You 
can use Unix APIs 
to get and set them (the getenv() and putenv() functions) and there are AS/400 
extension APIs 
also.  You can set them from the QSH (which is, I think, a Bourne shell in 
disguise) with 
EXPORT and display them with SET.

You need environment variables if you are working with Java (the CLASSPATH) and 
if you have 
ported Unix code and not made any effort to make it native code.

You can set them in the interactive (usually) job and have them copied to any 
batch jobs you 
submit.

All Unix dweebs should read the Unix Haters Handbook to realise what an ungodly 
mess Dennis 
Ritchie et al have inflicted on the IT industry (don't beat around the bush 
Simon, tell us what 
you really feel!  Don't start me on C ...).  Mind you, they're not alone.  
Let's all follow 
Microsoft on the path to eternal damnation -- oh it's been a long day, upgrade 
the system BIOS, 
upgrade the video BIOS, upgrade the video driver, boot Lose95 to play X-Wing 
vs. TIE Fighter 
(for stress relief) and poxy Lose95 requires 6 reboots because it thinks the 
entire system has 
changed and it keeps detecting new hardware and loading drivers.  And now OS/2 
can't find my 
printer. Bah, humbug!

Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175      Mobile: +61 0411 091 400           «»
«» Fax:   +61 3 9419 0175      mailto: shc@flybynight.com.au      «»
«»                                                                «»
«» Windoze should not be open at Warp speed.                      «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
//--- forwarded letter -------------------------------------------------------
> X-Mailer: Internet Mail Service (5.5.1960.3)
> Date: Wed, 26 May 99 10:52:48 -0700
> From: "Ken Slaugh" <ken.slaugh@cm-inc.com>
> To: "'midrange-l@midrange.com'" <midrange-l@midrange.com>
> Reply-To: MIDRANGE-L@midrange.com
> Subject: SBMJOB parameter

> 
> Can someone explain what this SBMJOB command parameter actually does:
> 
> Copy environment variables . . . CPYENVVAR  *NO           *NO, *YES 
> 
> What's an environment? What variables get copied?
> 
> Ken Slaugh
> Senior Programmer/System Analyst
> AS/400 Professional Network Administrator/MSE
> Specialist - Client Access/400
> Chouinard & Myhre, Inc.
> 
> +---
> | 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
+---


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.