Hello people, I hope you are all good,
I have a plain "PERFORM REMOVE TRANSACTIONS" (no conditional -WHERE- clauses so to remove them all), it ends with abend code 192 Message: FF0416 Severity: 08 - No Transactions match selection criteria.
According to WDI manual it's not required to include a selection criteria, but I don't need the abend either. So I decided to use IFCC(192) SETCC(0) to override it, this way:
PERFORM REMOVE TRANSACTIONS IFCC(192) SETCC(0)
Now it abends with Message TS0180 Severity: 08 - A mandatory WHERE or SELECTING keyword is missing or invalid in the following: IFCC(192) SETCC(0).
I tried splitting the statement as:
PERFORM REMOVE TRANSACTIONS
IFCC(192) SETCC(0)
same result.
According to the manual (sc23587300), pdf page 116, "REMOVE TRANSACTIONS": "The WHERE clause is optional for this command. If you do not specify a WHERE clause, all elegible transactions are removed from the Document Store".
Fine, but it seems to return a CCODE 192 when no transactions are found. So I tried to override according to the instructions on the same pdf page 49, "Overriding condition codes". But now I get the errors I last stated.
My final guess is, to override I need either a WHERE or SELECTING clause, otherwise IFCC is rejected.
Does anyone know if I'm right and, if I am, what type of WHERE or SELECTING may I use so to trick WDI into believing I want to select something when in fact I just want to select all transactions?
I only want to issue a PERFORM REMOVE TRANSACTIONS to remove them all, and to not get any abend if WDI finds no transactions to remove.
I hope I explained it clearly enough.
Thanks a lot in advance!
REMOVE TRANSACTIONS with conditional CC
-
- Posts: 32
- Joined: Wed Dec 22, 2010 11:25 pm
- Skillset: Cobol batch
- Referer: internet search
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: REMOVE TRANSACTIONS with conditional CC
Hello,
How many "elegible transactions" exist or are there none . . . ?If you do not specify a WHERE clause, all elegible transactions are removed from the Document Store".
Hope this helps,
d.sch.
d.sch.
-
- Posts: 32
- Joined: Wed Dec 22, 2010 11:25 pm
- Skillset: Cobol batch
- Referer: internet search
Re: REMOVE TRANSACTIONS with conditional CC
I don't know, but my guess is: there are none. I take it if there were transactions to delete, it will do it silently.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: REMOVE TRANSACTIONS with conditional CC
Hello,
If you intend to "delete everything" why not insert a "dummy" transaction immediately before the REMOVE?
It might be worth a simple test. . .
If you intend to "delete everything" why not insert a "dummy" transaction immediately before the REMOVE?
It might be worth a simple test. . .
Hope this helps,
d.sch.
d.sch.
-
- Posts: 32
- Joined: Wed Dec 22, 2010 11:25 pm
- Skillset: Cobol batch
- Referer: internet search
Re: REMOVE TRANSACTIONS with conditional CC
Good tip and I appreciate your suggestion, Dick, but the mere idea of adding more complexity to something that proved to be quite unpredictable scares the bytes out of me. Saying that, I don't have a clue on how to insert a dummy transaction, neither trust the manuals to learn how to do it.
Not now at least, because let's say it's normal to receive an ERROR as a result of not finding what you are not demanding to find, but not being able to override the abend when the manual clearly states you can...
Are you saying all that is just fine and I have to try alternatives to the documentation because those two documented procedures won't work?
Not now at least, because let's say it's normal to receive an ERROR as a result of not finding what you are not demanding to find, but not being able to override the abend when the manual clearly states you can...
Are you saying all that is just fine and I have to try alternatives to the documentation because those two documented procedures won't work?
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: REMOVE TRANSACTIONS with conditional CC
You should raise it with IBM because either the manuals are wrong and need correcting or they are unclear and need revision.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Posts: 32
- Joined: Wed Dec 22, 2010 11:25 pm
- Skillset: Cobol batch
- Referer: internet search
Re: REMOVE TRANSACTIONS with conditional CC
Thank you NicC. I was hoping to find some that have encountered the same problem, still hope. I'll come back with a solution if I find one.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: REMOVE TRANSACTIONS with conditional CC
Hello,
Adding this should not increase the complexity. . .
Possibly there is something i misunderstand.
"Something" inserts the "stuff" that you intend to delete wholesale. . . Clone/Add that bit of code immediately before the REMOVE to ensure there is at least one entry to delete.I don't have a clue on how to insert a dummy transaction
Adding this should not increase the complexity. . .
Possibly there is something i misunderstand.
Hope this helps,
d.sch.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 2
- 2141
-
by steve-myers
View the latest post
Tue Aug 24, 2021 10:21 pm
-
- 0
- 1655
-
by dran17
View the latest post
Tue Dec 06, 2022 8:23 pm
-
- 4
- 2249
-
by sergeyken
View the latest post
Mon Jun 26, 2023 12:56 am
-
-
remove leading special chars, space & trailing special char
by srihemz » Tue Jun 30, 2020 8:06 pm » in DFSORT/ICETOOL/ICEGENER - 2
- 3872
-
by sergeyken
View the latest post
Wed Jul 01, 2020 4:55 pm
-