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



High Level Assembler(HLASM) for MVS & VM & VSE

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

Postby vinodj » Mon Dec 12, 2011 5:47 pm

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
vinodj
 
Posts: 29
Joined: Wed Nov 23, 2011 6:16 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Tue Dec 13, 2011 2:09 am

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

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

Postby steve-myers » Tue Dec 13, 2011 4:34 am

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

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

Postby vinodj » Wed Dec 14, 2011 11:48 am

Hello d,

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

Thanks.
Vinod
vinodj
 
Posts: 29
Joined: Wed Nov 23, 2011 6:16 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby BillyBoyo » Wed Dec 14, 2011 12:46 pm

It might help if you can tell us what you are trying to do.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

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

Postby vinodj » Wed Dec 14, 2011 2:56 pm

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.
vinodj
 
Posts: 29
Joined: Wed Nov 23, 2011 6:16 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby steve-myers » Wed Dec 14, 2011 5:23 pm

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

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

Postby vinodj » Wed Dec 14, 2011 6:36 pm

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?
vinodj
 
Posts: 29
Joined: Wed Nov 23, 2011 6:16 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby steve-myers » Wed Dec 14, 2011 6:49 pm

Clearly you have not RTFM. The dataset name for your JOBLOG is not 'sysname.SYSLOG.SYSTEM'.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

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

Postby vinodj » Wed Dec 14, 2011 7:08 pm

Excuse me but I don't get what do you mean by RTFM.
vinodj
 
Posts: 29
Joined: Wed Nov 23, 2011 6:16 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Assembler

 


  • Related topics
    Replies
    Views
    Last post