IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to trace a assembler program in MVS env


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Fri Oct 21, 2005 10:05 am
Reply with quote

Hi,

I had written one assembler program in Vm environment and i traced the program from the initial steps. Also i traced it on runtime.

also we can modify the registers inbetween the runtime..

similarly, is there any way to trace assembler program in MVs environment.

If it is possible let me know..

Regards,
Gokul dass
Back to top
View user's profile Send private message
spanda

New User


Joined: 31 Aug 2005
Posts: 48
Location: U.K.

PostPosted: Tue Oct 25, 2005 5:40 pm
Reply with quote

When you say trace, I suppose you mean tracing the execution path of the assembler program instructions. Under MVS environment, tracing assembler programs execution path may be a little tricky. Of course, if you are executing an online program under CICS, you can use the CEDF facility. But in batch, there are limitations.

If your program has issued an SVC dump, then you may trace the execution from the register contents. But if you wish to trace the execution path at runtime without using any code-modifying methods, then I guess the MVS SLIP (Serviceability Level Indication Processing) traps are an option. SLIP is a diagnostic aid that traps certain system events and specifies what action to take. Using the SLIP command, the SLIP traps may be set, modified or deleted. IBM would normally recommend that SLIP traps be used only at the direction of a system programmer. That makes it even more difficult for the application programmer.

At our site, we have a macro available for dumping register contents, which can be used at various points in the assembler code to assist with tracing the execution path.

Apologies if this reply doesn't help you.
Panda.
Back to top
View user's profile Send private message
ironmike

New User


Joined: 07 Aug 2005
Posts: 33

PostPosted: Wed Oct 26, 2005 5:39 am
Reply with quote

You don't say in your posting what type of subsystem or environment the MVS program executes in.

If you are talking about tracing a program that executes under TSO, ISPF, or in batch, then you can use the TSO 'TEST' command to debug it. There is no TRACE facility within TEST, but you can set breakpoints, examine registers and storage, and display various control blocks.

Under TSO, you must first manually allocate any files the program needs (via the TSO 'ALLOC' command), then invoke TEST. As an example, if you want to test a program named 'XYZ', then you invoke TEST like this:

TEST 'programlibrary name(XYZ)'

TEST then prompts you with the prompt TEST, and you enter whichever TEST subcommands you need to use. TEST is documented in this IBM manual:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4C560/CCONTENTS?SHELF=EZ2ZO10F&DN=SA22-7782-07&DT=20050714000722
Back to top
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Wed Oct 26, 2005 9:36 am
Reply with quote

Hi Guys,

Thx for your updates.

It was very much useful for me.

Also Spanda, Can you plz explain me more about SLIP command.

Since i was new on SLIP.

With Kind Regards,
Gokul Dass
Back to top
View user's profile Send private message
spanda

New User


Joined: 31 Aug 2005
Posts: 48
Location: U.K.

PostPosted: Wed Oct 26, 2005 5:39 pm
Reply with quote

The SLIP command is basically an operator command, normally unavailable to application programmers (apologies if I have raised any undue hopes in this matter). It is a subcommand of OPER, which, among other things, will trace activity in a specified program by setting offsets within a job, user or a started task.

I understand this may not be what you are looking for but the sysprogs at your site may provide more help if you wish to avail the services of the SLIP command.

For more info, refer to the MVS System commands book:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA4G103/4.39?SHELF=HAS4BK13&DT=19930625095638

Thanks,
Panda.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Nov 17, 2005 2:57 pm
Reply with quote

Hi,
May be a silly question.

can't we use expeditor for any assembly programs?
Back to top
View user's profile Send private message
ironmike

New User


Joined: 07 Aug 2005
Posts: 33

PostPosted: Thu Nov 17, 2005 8:35 pm
Reply with quote

Yes, as far as I know. icon_smile.gif
Back to top
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Tue Nov 29, 2005 10:07 am
Reply with quote

Hi all,

parikshit123 & ironmike are suggesting the expeditor for assembler program trace.

Up to me I know only cobol program to trace in expeditor. How come an assembler program..

Is so, Can you guys plz explain me briefly about how to do it.

Thx & Rgs
Gokul
Back to top
View user's profile Send private message
aq16

New User


Joined: 04 Mar 2006
Posts: 3

PostPosted: Sat Mar 04, 2006 2:57 pm
Reply with quote

Gokul,

Don't you have IDF in your Installation? Nearly all installations have it . I don't know why people are not using that.

Shishir
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top