View previous topic :: View next topic
|
Author |
Message |
tweety
New User
Joined: 12 Jan 2006 Posts: 5 Location: hyderabad
|
|
|
|
hi all,
how to test particular record from a file in xpeditor. Please help me out.
tweety. |
|
Back to top |
|
|
tweety
New User
Joined: 12 Jan 2006 Posts: 5 Location: hyderabad
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
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 |
|
|
tweety
New User
Joined: 12 Jan 2006 Posts: 5 Location: hyderabad
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
tweety
New User
Joined: 12 Jan 2006 Posts: 5 Location: hyderabad
|
|
|
|
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 |
|
|
tweety
New User
Joined: 12 Jan 2006 Posts: 5 Location: hyderabad
|
|
|
|
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 |
|
|
|