× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Chuck, I followed your instructions but did not find duplicate entries
so I don't think we have the same situation.
I did create a completely new workspace (File->Switch Workspace and
entered a new name) and it still didn't save the custom command.

Thanks, Rob
On 2013-01-31 12:16 PM, Buck Calabro wrote:

On 1/31/2013 9:34 AM, Robert Rogerson wrote:


I created a custom compile command thought Compile->Compile->Work with
Compile Commands. When I first create the command it is available and I
can use it. But when I close and reopen Rdp it has disappeared.

I had the same problem after I upgraded to 8.5 from 7.0.0.8. When I did
the upgrade, I made a copy of my 7.0 workspace and let 8.5 convert it to
the new layout. It turns out that somewhere along the line, a glitch
occurred and there is a configuration file that has duplicate entries.

IBM's official response was to create a new workspace - which works
perfectly, but I have a LOT of custom commands, filters, etc. that I
really don't want to re-create. Thankfully, the support staff explained
exactly which file contained the duplicates and advised me that if I
really, really wanted to edit that file by hand to go for it - with the
clear caveat that if I didn't do it right, the official recovery was
going to be 'create a new workspace'. I see why support would recommend
creating a new workspace - after all, what else might have a hiccough?

With whose caveats in mind look for the following file. You will have
to do some research to find the exact path to your copy:

.metatdata\.plugins\org.eclipse.rse.core\profiles\PRF.buck_2043\PS.compilecommand.ibmi-qsys_8454607\node.properties

Close RDP and open the node.properties file in a plain text editor. I
used Notepad++ but don't see any reason Notepad won't work. Inside that
file are a list of the compile commands organised by source type. Here
is an example of the C source type:

06-child.00001.00-name=C
06-child.00001.01-type=PropertySet
06-child.00001.03-attr.description=null
06-child.00001.06-child.00000.00-name=type
06-child.00001.06-child.00000.01-type=Property
06-child.00001.06-child.00000.03-attr.type=java.lang.String
06-child.00001.06-child.00000.03-attr.value=compiletype
06-child.00001.06-child.00001.00-name=name
06-child.00001.06-child.00001.01-type=Property
06-child.00001.06-child.00001.03-attr.type=java.lang.String
06-child.00001.06-child.00001.03-attr.value=C
06-child.00001.06-child.00002.00-name=lastcompilename
06-child.00001.06-child.00002.01-type=Property
06-child.00001.06-child.00002.03-attr.type=java.lang.String
06-child.00001.06-child.00002.03-attr.value=CRTBNDC
06-child.00001.06-child.00003.00-name=sourcetype
06-child.00001.06-child.00003.01-type=Property
06-child.00001.06-child.00003.03-attr.type=java.lang.String
06-child.00001.06-child.00003.03-attr.value=C
06-child.00001.06-child.00004.00-name=CRTBNDC0
06-child.00001.06-child.00004.01-type=PropertySet
06-child.00001.06-child.00004.03-attr.description=null
06-child.00001.06-child.00004.06-child.00000.00-name=id
06-child.00001.06-child.00004.06-child.00000.01-type=Property
06-child.00001.06-child.00004.06-child.00000.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00000.03-attr.value=com.ibm.CRTBNDC
06-child.00001.06-child.00004.06-child.00001.00-name=name
06-child.00001.06-child.00004.06-child.00001.01-type=Property
06-child.00001.06-child.00004.06-child.00001.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00001.03-attr.value=CRTBNDC
06-child.00001.06-child.00004.06-child.00002.00-name=type
06-child.00001.06-child.00004.06-child.00002.01-type=Property
06-child.00001.06-child.00004.06-child.00002.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00002.03-attr.value=compilename
06-child.00001.06-child.00004.06-child.00003.00-name=nature
06-child.00001.06-child.00004.06-child.00003.01-type=Property
06-child.00001.06-child.00004.06-child.00003.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00003.03-attr.value=IBM defined
06-child.00001.06-child.00004.06-child.00004.00-name=default
06-child.00001.06-child.00004.06-child.00004.01-type=Property
06-child.00001.06-child.00004.06-child.00004.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00004.03-attr.value=CRTBNDC
PGM(&O/&N) SRCFILE(&L/&F) SRCMBR(&N) REPLACE(&R) OPTION(*EVENTF)
DBGVIEW(*SOURCE)
06-child.00001.06-child.00004.06-child.00005.00-name=current
06-child.00001.06-child.00004.06-child.00005.01-type=Property
06-child.00001.06-child.00004.06-child.00005.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00005.03-attr.value=CRTBNDC
PGM(&O/&N) SRCFILE(&L/&F) SRCMBR(&N) REPLACE(&R) OPTION(*EVENTF)
DBGVIEW(*SOURCE)
06-child.00001.06-child.00004.06-child.00006.00-name=menu
06-child.00001.06-child.00004.06-child.00006.01-type=Property
06-child.00001.06-child.00004.06-child.00006.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00006.03-attr.value=Both
06-child.00001.06-child.00004.06-child.00007.00-name=order
06-child.00001.06-child.00004.06-child.00007.01-type=Property
06-child.00001.06-child.00004.06-child.00007.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00007.03-attr.value=0
06-child.00001.06-child.00004.06-child.00008.00-name=labeleditable
06-child.00001.06-child.00004.06-child.00008.01-type=Property
06-child.00001.06-child.00004.06-child.00008.03-attr.type=java.lang.String
06-child.00001.06-child.00004.06-child.00008.03-attr.value=false
06-child.00001.06-child.00005.00-name=CRTCMOD1
06-child.00001.06-child.00005.01-type=PropertySet
06-child.00001.06-child.00005.03-attr.description=null
06-child.00001.06-child.00005.06-child.00000.00-name=id
06-child.00001.06-child.00005.06-child.00000.01-type=Property
06-child.00001.06-child.00005.06-child.00000.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00000.03-attr.value=com.ibm.CRTCMOD
06-child.00001.06-child.00005.06-child.00001.00-name=name
06-child.00001.06-child.00005.06-child.00001.01-type=Property
06-child.00001.06-child.00005.06-child.00001.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00001.03-attr.value=CRTCMOD
06-child.00001.06-child.00005.06-child.00002.00-name=type
06-child.00001.06-child.00005.06-child.00002.01-type=Property
06-child.00001.06-child.00005.06-child.00002.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00002.03-attr.value=compilename
06-child.00001.06-child.00005.06-child.00003.00-name=nature
06-child.00001.06-child.00005.06-child.00003.01-type=Property
06-child.00001.06-child.00005.06-child.00003.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00003.03-attr.value=IBM defined
06-child.00001.06-child.00005.06-child.00004.00-name=default
06-child.00001.06-child.00005.06-child.00004.01-type=Property
06-child.00001.06-child.00005.06-child.00004.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00004.03-attr.value=CRTCMOD
MODULE(&O/&N) SRCFILE(&L/&F) SRCMBR(&N) REPLACE(&R) OPTION(*EVENTF)
DBGVIEW(*SOURCE)
06-child.00001.06-child.00005.06-child.00005.00-name=current
06-child.00001.06-child.00005.06-child.00005.01-type=Property
06-child.00001.06-child.00005.06-child.00005.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00005.03-attr.value=CRTCMOD
MODULE(&O/&N) SRCFILE(&L/&F) SRCMBR(&N) REPLACE(&R) OPTION(*EVENTF)
DBGVIEW(*SOURCE)
06-child.00001.06-child.00005.06-child.00006.00-name=menu
06-child.00001.06-child.00005.06-child.00006.01-type=Property
06-child.00001.06-child.00005.06-child.00006.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00006.03-attr.value=Both
06-child.00001.06-child.00005.06-child.00007.00-name=order
06-child.00001.06-child.00005.06-child.00007.01-type=Property
06-child.00001.06-child.00005.06-child.00007.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00007.03-attr.value=1
06-child.00001.06-child.00005.06-child.00008.00-name=labeleditable
06-child.00001.06-child.00005.06-child.00008.01-type=Property
06-child.00001.06-child.00005.06-child.00008.03-attr.type=java.lang.String
06-child.00001.06-child.00005.06-child.00008.03-attr.value=false

All of the commands usable for the C source type are listed here. The
next one is for CBL, and it is 06-child.00002:

06-child.00002.00-name=CBL
06-child.00002.01-type=PropertySet
06-child.00002.03-attr.description=null
06-child.00002.06-child.00000.00-name=type
06-child.00002.06-child.00000.01-type=Property
06-child.00002.06-child.00000.03-attr.type=java.lang.String
06-child.00002.06-child.00000.03-attr.value=compiletype
06-child.00002.06-child.00001.00-name=name
06-child.00002.06-child.00001.01-type=Property
06-child.00002.06-child.00001.03-attr.type=java.lang.String
06-child.00002.06-child.00001.03-attr.value=CBL
...

This pattern repeats. For me, the final entry is .00034 QMQRY. After
that, it started all over again with .00035 and C. What I did was to
delete the entirety of the file from this duplicate 'C' entry right to
the end.

Hope this helps.
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.