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

How to test particular record from a file in xpeditor


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tweety

New User


Joined: 12 Jan 2006
Posts: 5
Location: hyderabad

PostPosted: Thu Jan 12, 2006 11:49 am
Reply with quote

hi all,

how to test particular record from a file in xpeditor. Please help me out.

tweety.
Back to top
View user's profile Send private message
tweety

New User


Joined: 12 Jan 2006
Posts: 5
Location: hyderabad

PostPosted: Thu Jan 12, 2006 5:26 pm
Reply with quote

hi all,

I need a quick response. If we want to test a record in a file using xpeditor. How can we do that?

Other than copying that particular record into a seperate file and doing xpedit. is there any other way to check a particular record. Hope i get quick response from u ppl.

Thanks in advance.

twwety.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jan 12, 2006 5:48 pm
Reply with quote

Please provide mor detailes:

- What kind of file ?
- How do you read it (COBOL/HLASM/PLI) ?
- Do you know the record number ?
- Is it a batch or online Expediter ?
- Did you read the Expediter's manual ?

O.
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Jan 12, 2006 5:56 pm
Reply with quote

while debugging we can forcibly insert values in to the variables and can continue debugging....

U KEEP the variables that holds the record.....and when control comes to that variables...u insert or replace wht ever the values u need......

corrections welcomed......

Thanks,
Rajesh
Back to top
View user's profile Send private message
tweety

New User


Joined: 12 Jan 2006
Posts: 5
Location: hyderabad

PostPosted: Mon Jan 16, 2006 9:48 am
Reply with quote

What kind of file ? It is a flat file
How do you read it read by Cobol
Do you know the record number ? it can be any record number in b/w a file.
Did you read the Expediter's manual ? I read the manual previously posted but couldn't find anything regarding this issue.


"while debugging we can forcibly insert values in to the variables and can continue debugging.... "
How can we insert values while debugging.

"U KEEP the variables that holds the record.....and when control comes to that variables...u insert or replace wht ever the values u need...... "
can u be clear abt this.

Thanks for the response.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jan 16, 2006 10:29 am
Reply with quote

You can add a counter variable, for example WS-CNT and Increment it after your READ statement. Then issue the following command in the Xpediter command line: "WHEN WS-CNT = nnn", where nnn is your desired record number.

O.
Back to top
View user's profile Send private message
tweety

New User


Joined: 12 Jan 2006
Posts: 5
Location: hyderabad

PostPosted: Mon Jan 16, 2006 3:52 pm
Reply with quote

Hi,

Does "When" command take only the record mentioned in the command or it will continue record by record till that when command?

for example if we want to execute 2nd record and given "When WS-CNT = 2" in command prompt then 2nd record will be executed only after processing 1st record. Meaning When we put break point at the counter variable(WS-CNT) we can avoid seeing processing of some steps of first record. But it is compulsoy that it will execute 1st record which is present before 2nd record which we want to execute and see full processing of 2nd record though there are Break points in b/w.

Correct me if iam wrong. Thanks for ur reply. if u didn't get this mail pls inform me without hesitation.
Back to top
View user's profile Send private message
tweety

New User


Joined: 12 Jan 2006
Posts: 5
Location: hyderabad

PostPosted: Mon Jan 16, 2006 4:35 pm
Reply with quote

I found a solution. Without using "When" Command.

As told previously using the counter variable we can go to that particular record by giving the record count at the counter variable using "keep"
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top