Page 1 of 2

how to display any system information

PostPosted: Fri Jul 23, 2010 11:11 am
by nagendra
hii,

i hav a doubt here,

i want to display any system information in the output of the program i compiled through jcl..

with out specifying any information about system.. in the input of the program......

can it be possible...........???????????

Re: how to display any system information

PostPosted: Fri Jul 23, 2010 11:45 am
by expat
Just exactly what do you want to display, and more importantly why ?

Re: how to display any system information

PostPosted: Fri Jul 23, 2010 12:39 pm
by ramesh4mainframes
Hi Nagendra,

Can you explain clearly. I didn't get your intention exactly.

Re: how to display any system information

PostPosted: Fri Jul 23, 2010 4:04 pm
by NicC
It doesn't matter whether you compiled in batch or foreground. It might depend on which language you write your program in, certainly what facilities the language has for querying the system and what you mean by wanting to display system information in the output from you program.

If you use Rexx there are 2 TSO REXX functions for querying system information SYSVAR and MVSVAR. You could call a Rexx subroutine perhaps from your program.

But it does depend on what YOU mean.

Re: how to display any system information

PostPosted: Sat Jul 24, 2010 11:01 am
by nagendra
hii,

ok,

suppose i want to display my system date and time...

with out giving any input.. the system time and date...

how i can get the output.. the date and time.. of my system...

by writing any jcl program.........

i want an example of that....

Re: how to display any system information

PostPosted: Sat Jul 24, 2010 12:57 pm
by steve-myers
JCL is not, repeat not, a programming language. There is no defined method in JCL to get the date and time. Even if there was a method, you run into the question, which date and time? The date and time the job entered the system? The date and time the JCL was initially validated? The date and time the job actually started executing? Local date and time, or some other date and time?

Some system variable data is available for started task JCL. All user jobs have access to the userid used to run the job, but that's about it.
//MYSRC    DD  DISP=SHR,DSN=&SYSUID..SOURCE

Re: how to display any system information

PostPosted: Sat Jul 24, 2010 1:54 pm
by NicC
If you are wondering how to get Date and Time into JCL I believe it can be done by certain scheduling packages. I have never used this facility but I have heard of it. It can be used to give datasets names based on date and time. I do not know if it can be used to set up instream data. In any case, it is not a function of JCL but of the scheduling package. JCL only specifies which programs you job wants to run, in which sequence, and what resources are required by the program. The program can be a home-grown one or a utility program e.g. IDCAMS or SORT.

Re: how to display any system information

PostPosted: Sat Jul 24, 2010 8:20 pm
by dick scherrer
Hello,

how i can get the output.. the date and time.. of my system...
It is one thing to get these values - it is another to use them once "gotten".

How do you intend to use the data and time?

As has already been mentioned, the only thing jcl does is execute programs - which program(s) do you plan on using?

Re: how to display any system information

PostPosted: Sun Jul 25, 2010 12:18 pm
by nagendra
dick scherrer wrote:Hello,

how i can get the output.. the date and time.. of my system...
It is one thing to get these values - it is another to use them once "gotten".

How do you intend to use the data and time?

As has already been mentioned, the only thing jcl does is execute programs - which program(s) do you plan on using?




yaa, exactly....

i wanna just run the programs. using jcl.

with those programs..

i want to display the information date and time of my system........

Re: how to display any system information

PostPosted: Sun Jul 25, 2010 6:42 pm
by steve-myers
OK. this is not a JCL question; it is a question for whatever programming language you choose to use. You can almost certainly get a better response by posing this question in the forum that is appropriate for the programming language you are using, and also clearly state what you want to do with this information when you get it.

Hint: You can probably find this in the manuals quicker than you'll get a response in these forums. Not only that, the manuals won't imply you are a lazy good for nothing. The manuals can be hard to locate, and hard to read once you've located the correct manual, but once you've mastered these skills you will be immensely more useful.

Another hint: Something like 35 years ago, back when IBM really provided a high level of service to its customers I can recall an IBM Field Engineer telling me he enjoyed working with me because if I didn't know something I'd usually admit it, and also because I usually knew how to find whatever it was I didn't know in the manuals or by analysis.