Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to trace a assembler program in MVS env

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: How to trace a assembler program in MVS env
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    Post subject: Re: How to trace a assembler program in MVS env
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    Post subject:
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    Post subject: Re: How to trace a assembler program in MVS env
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    Post subject: Re: How to trace a assembler program in MVS env
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:
http://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    Post subject:
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    Post subject:
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    Post subject: Expeditor can't work with assembler?
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    Post subject: Re: How to trace a assembler program in MVS env
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us