You are on page 1of 24

XPEDITER TABLE OF CONTENTS

INTRODUCTION...................................................................................................................................... 2 TESTING ONLINE PROGRAMS............................................................................................................ 15

INTRODUCTION
Xpediter is the one of most Powerful Debugging Tool in Mainframe Environment both for Batch and Online Programs.. It provides facilities for unit testing of modules and component testing of the programs in the development environment.

TESTING BATCH PROGRAMS


ollowing steps to be done for running the Xpediter. Main screen !

T"pe #XP$ on command line on I%P menu& "ou will get following Xpediter Primar" Menu

Page '

irst "ou have to prepare "our program to test in Xpediter. %elect ( from Xpediter primar" menu and will get the following program preparation menu

Page )

%elect Option * from program preparation menu and will get the following edit file list menu.

Page *

There are two dataset names "ou have to suppl"! Other Partitioned or %e+uential Dataset Dataset ,ame ---. ( Mention the o!" o#n $%t%&et ' /op" from 0/1& /1I%T& or Other ile 2llocation 1ist Dataset ,ame ---. ( Mention the (CL $%t%&et n%)e %n$ )e)*e" n%)e o+ the R!n (CL ' Press enter and u will get the following DDname menu

Page 3

%elect input& output DD names and s"sout. press ) and will get the following edit file list menu.

Page 4

T"pe 5211O/6 on command line of the edit file list menu& press enter 7e". Then press ) and press enter 7e" again the allocated dataset will be saved. Thi& i& en$ o+ the (CL P"e,%"%tion +o" % ,%"ti-!.%" ,"o/"%).

%elect option8'9T%O: from Xpediter Primar" menu& ;ou will get the following standard menu.

Page <

T"pe #%ET=P0 on command line of the standard menu then enter. ;ou will get the following setup menu.

Page >

%elect option ( from setup menu and press enter 7e"& ;ou will get the following load module menu.

Page ?

@ive the load librar" dataset of the program. press ) and u will get the following setup menu again.

Page (A

select option ' from setup menu & press enter 7e" will get the following DDIO files menu.

Page ((

The primar" input to XPEDITEBCT%O is the following! (. DDIO libraries containing the source listing members. '. 1oad libraries containing the programs to be tested and Debugged.

,ote! The source listing dataset and "our load libraries are the output of the compile and lin7.
Page ('

Include following steps in the compilation 0/1& for getting the DDIO files& 2dd these steps before lin7 edit steps. CCXOPTIO,% DD DI%P-%DB&D%,-XT.XT4*B(.XOPTIO,% CC/EPDDIO DD DI%P-%DB&D%,- 1@ @B(./OBO1.DDIO CC/EPPBMO DD F /OBO19O=TP=T9PBI,T&DDIO:: PBO/E%%OB9O=TP=T9,OPBI,T&,ODDIO:&TEXT9,O,E:: 12,@=2@E9G%/OBO1: DDIO9O=TP=T9,O1I%T&,OXBE & I,D&,ODM2P&,OO CCF The above addition in 0/1 is needed onl" if "ou are not =sing /hangeman.If ;ou are compiling in /hange man& /ompile with Xpediter option. %ET&/OMPBE%%::

Press ) twice. Eill get the following standard menu.

or the Program& Entr" point and 1oad module t"pe program8name

Page ()

Page (*

TESTING ONLINE PROGRAMS 2fter Entering /I/% Begion T"pe XPED XXXXXXXX9XXXXXXXX is the Program ,ame: and Press E,TEB.

;ou will get the ollowing %creen.

Page (3

T"pe B at /ommand Prompt to EHecute the Program from Beginning or T"pe B at the 1ine from which "ou want to Bun. It will give following %creen informing that Brea7point was %et.

Page (4

Press E%/ Ie"& so that "ou will get Blan7 %creen. T"pe the our /haracter Transaction8Id and Press E,TEB. ;ou will get the ollowing %creen.

Page (<

;ou can start eHecuting the Program as same wa" as it was for Batch Program with help of P ? and P (' and other Ie"s.. P IE;% (-DE1P& '-PEEI /%B& )-E,D& *-EXIT& 3- I,D& 4-1O/2TE& <-=P& >-DOE,& ?-@O (& (A-1E T& ((-BI@DT& ('-@O.

Page (>

P ' PEEI /%B ! Displa"s the contents of the data name defined b" the current cursor position. The cursor must be in the %ource window under a valid data name. P 4 1O/2TE !%crolls the source displa" to the current location where eHecution was %uspended. This command is useful when "ou want to chec7 some logic in some other Para than the current eHecuting Para and want to return to the point where the eHecution is positioned. P ? @O ( P (' @O 1og @o !EHecutes the neHt logical instruction in "our program& then pauses. !%tarts or resumes eHecution of "our program !To displa" log prior to termination !To resume test eHecution or press Enter to resume test eHecution.

B"e%1 Point&2 ;ou can control program eHecution b" using brea7points. 2 brea7point is a certain location in "our program where "ou want program eHecution to stop. EHample. AAAA*( AAAA*' AAAA*) B AAAA** I,IT8P2B2. MOGE JEBO TO ,8/,TB9(: ,8/,TB9': ,8/,TB9): ,8/,TB9*:. OPE, I,P=T I, I1E. MOGE K,K TO O=T8O 8BE/%.

AAAA*3 AAAA*4 AAAA*< AAAA*> ,ote!

2,21;JE8,EXT8BE/. BE2D I, I1E I,TO EOBI8BE/ 2T E,D MOGE K;K TO O=T8O 8BE/%.

Press P (' or t"pe @O to eHecute program eHecution stops at *) . If u want continue from the Brea7 point& Press P ? 9@O (: to eHecute the neHt statement. Default Brea7 Points! (: starts at the Procedure Division ': End with the %top Bun . De.etin/ B"e%1 Point&2
Page (?

;ou can delete the Brea7 Points b" T"ping D on the 1ine where Brea7 Point was %et. AAAA*( I,IT8P2B2. AAAA*' MOGE JEBO TO ,8/,TB9(: ,8/,TB9': ,8/,TB9): ,8/,TB9*:. AADA*) B OPE, I,P=T I, I1E. AAAA** MOGE K,K TO O=T8O 8BE/%. It will Delete the Brea7 Point. ;ou can Observe that 5B6 priorl" set will go off after entering 5D6 and pressing E,TEB. 1ine commands. (: ': ): *: 2 and I P @T %

(. Enter an 526 line command on statement *4& setting an after brea7point at the BE2D statement. ,eHt& t"pe the 5I'6 line command on statement *4 to displa" the contents of wor7ing storage for EOBI8BE/ 9the second variable identified on line *4:. %ee the eHample given. The I in column ? of the window indicates that it is an eHplicitl" 7ept item and distinguishes it from the automaticall" 7ept data.

AAAA)A I A( EOBI8BE/

. ...

8 AAAA'> A( O=T8O 8BE/% . . FF E,D FF 888888 8888888888888888888888888888888888888888888888 -----. MOGE K,K TO O=T8O 8BE/%. AAAA*3 2,21;JE8,EXT8BE/. AAAA*4 2 BE2D I, I1E I,TO EOBI8BE/ AAAA*< 2T E,D MOGE K;K TO O=T8O 8BE/%. . . . . . . . . . . . . . . . . . . ,ote! ;ou can delete the Gariables 7ept using 5I6 b" t"ping 5D6 . AADA)A I A( EOBI8BE/ 8 AAAA'> A( O=T8O 8BE/% . . FF E,D FF 888888 8888888888888888888888888888888888888888888888 -----. MOGE K,K TO O=T8O 8BE/%. AAAA*3 2,21;JE8,EXT8BE/. AAAA*4 2 BE2D I, I1E I,TO EOBI8BE/
Page 'A

. ...

AAAA*<

2T E,D

MOGE K;K TO O=T8O 8BE/%.

It will Delete the eHplicitl" 7ept Gariables. (. P 9Pee7: line command& and press Enter. The screen automaticall" scrolls to the D2T2 DIGI%IO, statement where the table is defined& inserts a P in column ?& and displa"s the occurrence and value of ,8/,TB EHample! (A ,8,2ME P (A ,8/,TB A( O=T8O 8BE/% A( TBI2,@1E8T;PE A( EOBI8BE/. PI/ X9'(:. PI/ ? . AAAA PI/ X. PI/ ?.

A3 %IDE82

PI/ ?9A(:.

A3 %IDE8B PI/ ?9A(:. A3 %IDE8/ PI/ ?9A(:. B PBO/ED=BE DIGI%IO,. M2I,8P2B2. PEB OBM I,IT8P2B2. PEB OBM 2,21;JE8,EXT8BE/ =,TI1 O=T8O 8BE/% - K;K. PEB OBM E,DI,@8P2B2. (. @T is used to resume eHecution at certain point or %tarts EHecution at certain Point . T"pe @T on the 1ine where "ou want to start eHecution and Press E,TEB. -----. AAGT*3 AAAA*4 AAAA*< MOGE K,K TO O=T8O 8BE/%. 2,21;JE8,EXT8BE/. BE2D I, I1E I,TO EOBI8BE/ 2T E,D MOGE K;K TO O=T8O 8BE/%.

;ou can observe li7e this. AAAA** -----. AAAA*4 AAAA*< MOGE K,K TO O=T8O 8BE/%. 2,21;JE8,EXT8BE/. BE2D I, I1E I,TO EOBI8BE/ 2T E,D MOGE K;K TO O=T8O 8BE/%.
Page '(

(. % is =sed to %7ip the eHecution of a particular statement. or s7ipping a condition li7e #I $ "ou have comment the entire bloc7 of condition. -----. AASA*3 AAAA*4 AAAA*< MOGE K,K TO O=T8O 8BE/%. 2,21;JE8,EXT8BE/. BE2D I, I1E I,TO EOBI8BE/ 2T E,D MOGE K;K TO O=T8O 8BE/%.

It will s7ip the eHecution of the line *3. -----. MOGE K,K TO O=T8O 8BE/%. AADA*3 % 2,21;JE8,EXT8BE/. AAAA*4 BE2D I, I1E I,TO EOBI8BE/ AAAA*< 2T E,D MOGE K;K TO O=T8O 8BE/%. If "ou want to delete the s7ip "ou have to t"pe #D$ and press E,TEB. ;ou can Observe that 5%6 priorl" set will go off after entering 5D6 and pressing E,TEB. /ommand 1ine /ommands! (: EDE, ': @OTO (: EDE, is used to pause the eHecution of the program at certain point when the set condition arises even "ou are eHecuting with P (' /ommand. /OMM2,D ---. 3HEN 3S4ITEM2 5 65777 %/BO11 ---. /%B 888888 88888888888888888888888888888888888888888888888 AAAA(> B PBO/ED=BE DIGI%IO,. AAAA(? FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AAAA'A AAAA8M2I,1I,E8P2B2. AAAA'( FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AAAA'' AAAA') /211 KBO=TI,'K =%I,@ B; BE EBE,/E E%8ITEM(&E%8ITEM'. AAAA'* I E%8/TB L 3 AAAA'3 MOGE '3AAA TO E%8ITEM( AAAA'4 MOGE )3AAA TO E%8ITEM' It will pause eHecution when the Galue of E%8ITEM' becomes )3AAA.;ou can continue the eHecution from this point onwards. ;ou can 7eep in the same wa" a variable name with out Galue . Program eHecution pauses when ever the variable changes.

Page ''

;ou can delete EDE, command b" t"ping DE1ETE EDE, E%8ITEM' - )3AAA at the command line. /OMM2,D ---. DELETE 3HEN 3S4ITEM2 5 65777 %/BO11 ---. /%B 888888 88888888888888888888888888888888888888888888888 AAAA(> B PBO/ED=BE DIGI%IO,. AAAA(? FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AAAA'A AAAA8M2I,1I,E8P2B2. AAAA'( FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ': @OTO used to transfer the eHecution to particular line. /OMM2,D ---. GOTO 777728 %/BO11 ---. /%B 888888 88888888888888888888888888888888888888888888888 AAAA(> B PBO/ED=BE DIGI%IO,. AAAA(? FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AAAA'A AAAA8M2I,1I,E8P2B2. AAAA'( FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AAAA'' AAAA') /211 KBO=TI,'K =%I,@ B; BE EBE,/E E%8ITEM(&E%8ITEM'. AAAA'* I E%8/TB L 3 AAAA'3 MOGE '3AAA TO E%8ITEM( MOGE )3AAA TO E%8ITEM' It will transfer /ontrol of eHecution to '* th line. It is similar as line command @T.

Page ')

Page '*

You might also like