MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mainframe testing

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mala
Beginner


Joined: 06 Aug 2006
Posts: 4
Topics: 2

PostPosted: Sun Aug 06, 2006 8:33 am    Post subject: mainframe testing Reply with quote

Hi friends,

If I get a change request in cobol to change the field size from 7 bytes to 8 bytes. what are the steps to be followed to perform modification and to perform testing using the tools FILE-AID, ENDEAVOR, XPEDITER since I get change request. I want it with example
Regards,
mala
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Sun Aug 06, 2006 1:28 pm    Post subject: Reply with quote

Mala,

Say for example u have a declaration for a variable :
Code:

01 WS-VAR PIC X(07) VALUE SPACES.

And if you need to change the length of the variable to 8 bytes then normal convention is used to comment the existing code and give a short description of the change with SR number allocated to you as well in the Modification log you need to describe the SR like below:
Code:
                   
      *                      MODIFICATION LOG                          *
      *                                                                *
      *  PROGRAMMER     DATE      COMMENTS                             *
      *  ----------     -----     --------                             *
      *                                                                *
      *  SHEKAR         07/06/06  INITIAL WRITING.                     *
      *                                                                *
      *  MALA           08/06/06  SR1234 - CHANGED VARIABLE WS-VAR     *
      *                                    FROM 7 TO 8 BYTES           *
      ******************************************************************
   .
   .
     
       WORKING-STORAGE SECTION.
      ******************************************************************
      *                            VARIABLES                           *
      ******************************************************************
      *SR1234
      *01  WS-VAR                    PIC X(07) VALUE SPACES.
       01  WS-VAR                    PIC X(08) VALUE SPACES.
   .
   .
       PROCEDURE DIVISION.
                MOVE 'ABCDEFGH' TO WS-VAR.
                DISPLAY 'WS-VAR IS ' WS-VAR.
      

This is the normal procedure for any change in the code with respect to any new SR.You can test using display statements.
However if you need to test using XPEDITER u need to set Break points between the portion of the code you want to execute and the execution will display the values of the variables in the Command Window.Hope this helps.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Sun Aug 06, 2006 3:55 pm    Post subject: Reply with quote

Your question is too general. Here are some points:
- Is this a batch or online program?
- If online, is that variable going to be in a BMS?
- Is there any connection to database fields?
- Is this variable being sent as parameter to other programs?
- Do you use it in ACCEPT?
- If this is a numeric variable, do you perform any arithmetic operations on it?
- etc. etc.

O.
________
extreme q vaporizer


Last edited by ofer71 on Sat Feb 05, 2011 11:38 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
mala
Beginner


Joined: 06 Aug 2006
Posts: 4
Topics: 2

PostPosted: Sun Aug 06, 2006 9:39 pm    Post subject: Reply with quote

Hi shekar,
I really Thank you for your immediate reply. I did understand what you replied that is more than enough for me.
can you also tell me 1) from where will you extract the program to which modification has to be done.
2) after testing using xpeditor or through display if the program is working well means what i supposed to do. Very Happy

Regards,
Mala
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Sun Aug 06, 2006 11:10 pm    Post subject: Reply with quote

Mala,

Basically in any real environment systems are maintained to have Productions versions of the code by any Configuration Management tools which keep the history of the versions of the code.So whenever you get a new request to modify the code,these are the steps to be followed:

1.Signout the code from Production to Unit Environment.
2.Make the code changes and perform Unit Test by running unit test cases.If necessary perform other testing methods so that the modified code passes all the phases.
3.Get get results reviewed and if results are ok then you are done with Unit Testing.
4.Move the code to System Test and perfrom System Testing.
5.Finally Perform UAT (User Acceptance Testing - which is done by end users)
6.Promote the code to Production where the new modified code becomes live.

Hope this helps.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
mala
Beginner


Joined: 06 Aug 2006
Posts: 4
Topics: 2

PostPosted: Mon Aug 07, 2006 1:42 am    Post subject: Reply with quote

Hi,
Thank u very much. I did understand well. can u tell me what is the purpose of using FILE-AID. I think we can see the record layout. will you be copying the record layout from file-aid and will write separate program for that.

Regards,
Mala
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Mon Aug 07, 2006 3:18 am    Post subject: Reply with quote

Mala

Below is the description for the use of File-Aid.Hope this helps.

File-AID/Batch is a data manipulation program that consolidates the functionsof most standard IBM utilities.

Use File-AID/Batch to:

1.Copy records or portions of records from one dataset type to another
2.Print record data in four formats
3.Change records of any length on any type of dataset (that is, enlarge data fields, add new data fields)
4.Process datasets selectively to display or update information
5.Recognize logical JCL continuations
6.Accumulate totals to verify reports
7.Reformat records
8.Read all VSAM and sequential datasets forward or backward.

Use File-AID/Batch to run jobs requiring selection instead of specialized selection programs. After execution, File-AID can print a report that shows the number of records read and written, and the number of records processed by the various functions within File-AID.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
madhuroyus
Beginner


Joined: 09 Jan 2006
Posts: 45
Topics: 14
Location: Bangalore

PostPosted: Mon Aug 07, 2006 4:06 am    Post subject: Reply with quote

Mala,

To get better understanding on Fileaid, you have to read some manuals on this.

Go thru this link. You have to register first and then u can access this guide on Fileaid.

http://Mcmillan_The_Moron.com/downloads.php

Hope this will helps.

Thanks
Madhu
_________________
Self confidence is something that says U will do it, when the rest of the world has exactly opposite view.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group