Text description for IFS stream files #2760
-
I was looking to display text descriptions for IFS streamfiles but I believe the functionality does not exist. On investigating the extension source code, found that What I am trying to suggest here is to implement the text description for streamfiles. One suggestion is to use IFS_OBJECT_STATISTICS table function either on a directory or on a streamfile. I prefer the former approach. The text can be put into a dictionary/json object with filename as the key. If this is not possible for you, I understand and would like to do it myself. Do let me know if this is a good idea. vscode-ibmi/src/api/IBMiContent.ts Lines 797 to 802 in 6eef538 Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@rishabkaushik I researched this idea some years ago - to use the However, I found that the text attribute is not supported by the I decided it was a bad idea and not worth the effort. This attribute is too platform specific, and I would advice to use it only on static files only used on IBM i. |
Beta Was this translation helpful? Give feedback.
@rishabkaushik We use
ctl-opt text()
in RPGLE sources anddclprcopt text()
in CLLE sources. For CMD sources we usecmd 'text' text(*cmdpmt)
. Any other source have aCHGOBJD TEXT()
build instruction in the source. This works great for us and maybe for other too.Having to open each streamfile shown in the IFS browser, just to show some text, is way too expensive! I think that having it in the source and having to open the source to see it, is fine - fortunately IBM i now stores the streamfile used for compile in the generated program objects, so it's easier to find the correct source if there's an issue with the text.