Page 1 of 2

How to refer to JESMSGLG as a file in assembler program?

PostPosted: Mon Dec 12, 2011 5:47 pm
by vinodj
Hello,

I want to search for a particular string in JESMSGLG from an assembler program. e.g. following is my JESMSGLG and I want to search for string xxxxxxxxx and if that string is present I want to print particular message in some other file.
--------------------------------------------------------------------------------------------
12.21.41 JOB00884 xxxxxxxxx VOLUME SELECTION HAS FAILED FOR
938 DATA SET YYYYYYYYYYYYYY
938 JOBNAME (VINO0041) STEPNAME (MMM7001)
938 PROGNAME (FFFFC70 ) DDNAME (OUTPT )
--------------------------------------------------------------------------------------------

Please tell me how to refer to this JESMSGLG from my assembler program. Also tell me if this can be done.

Thanks.

Regards,
Vinod

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Tue Dec 13, 2011 2:09 am
by dick scherrer
Hello,

Are you looking for information from a job that was run earlier or from the job this assembler program would be running as part of?

If some previous job(s) how to choose which ones?

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Tue Dec 13, 2011 4:34 am
by steve-myers
It's not real easy. See the section JES SPOOL Dataset Browse in z/OS V1R13.0 JES Application Programming. The material in that book should be valid back to OS/390 V1R3, though the DALUASSR dynamic allocation key is more recent. This is not something a beginner should attempt.

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Wed Dec 14, 2011 11:48 am
by vinodj
Hello d,

I am looking for information from the job this assembler program would be running as part of.

Thanks.
Vinod

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Wed Dec 14, 2011 12:46 pm
by BillyBoyo
It might help if you can tell us what you are trying to do.

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Wed Dec 14, 2011 2:56 pm
by vinodj
I have a routine to dynamically allocate a dataset. In link "z/OS V1R13.0 JES Application Programming" given by steve it is given that current SYSLOG can be accessed by the name "sysname.SYSLOG.SYSTEM" so now I am trying to allocate a dataset but I don't know how to copy the SYSLOG into this new ly allocated dataset.

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Wed Dec 14, 2011 5:23 pm
by steve-myers
RTFM. The hard part is the allocate. Once you've done that you can use a regular OPEN, and GET/PUT to do the copy. By the way, you initially asked for your JOBLOG, not the SYSLOG. You DO NOT want the SYSLOG: it's too large.

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Wed Dec 14, 2011 6:36 pm
by vinodj
Don't we need DALBRTKN, DALDSNAM to copy the JOBLOG into this dynamically allocated dataset?
And yes I did not mean SYSLOG it is JOBLOG.
So while allocating this dataset dynamically I will pass the Dataset name as "sysname.SYSLOG.SYSTEM" (but what is it for JOBLOG?)
and then I can normally read it . Am I right?

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Wed Dec 14, 2011 6:49 pm
by steve-myers
Clearly you have not RTFM. The dataset name for your JOBLOG is not 'sysname.SYSLOG.SYSTEM'.

Re: How to refer to JESMSGLG as a file in assembler program?

PostPosted: Wed Dec 14, 2011 7:08 pm
by vinodj
Excuse me but I don't get what do you mean by RTFM.