how to display any system information



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

how to display any system information

Postby nagendra » Fri Jul 23, 2010 11:11 am

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...........???????????
Nagendra
nagendra
 
Posts: 21
Joined: Mon Jul 19, 2010 12:18 pm
Location: bangalore
Has thanked: 0 time
Been thanked: 0 time

Re: how to display any system information

 

Re: how to display any system information

Postby expat » Fri Jul 23, 2010 11:45 am

Just exactly what do you want to display, and more importantly why ?
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: how to display any system information

Postby ramesh4mainframes » Fri Jul 23, 2010 12:39 pm

Hi Nagendra,

Can you explain clearly. I didn't get your intention exactly.
Thanks,
RamS
ramesh4mainframes
 
Posts: 32
Joined: Mon Jun 07, 2010 3:58 pm
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

Re: how to display any system information

Postby NicC » Fri Jul 23, 2010 4:04 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: how to display any system information

Postby nagendra » Sat Jul 24, 2010 11:01 am

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....
Nagendra
nagendra
 
Posts: 21
Joined: Mon Jul 19, 2010 12:18 pm
Location: bangalore
Has thanked: 0 time
Been thanked: 0 time

Re: how to display any system information

Postby steve-myers » Sat Jul 24, 2010 12:57 pm

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
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: how to display any system information

Postby NicC » Sat Jul 24, 2010 1:54 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: how to display any system information

Postby dick scherrer » Sat Jul 24, 2010 8:20 pm

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: how to display any system information

Postby nagendra » Sun Jul 25, 2010 12:18 pm

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........
Nagendra
nagendra
 
Posts: 21
Joined: Mon Jul 19, 2010 12:18 pm
Location: bangalore
Has thanked: 0 time
Been thanked: 0 time

Re: how to display any system information

Postby steve-myers » Sun Jul 25, 2010 6:42 pm

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.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post