This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
Shape the future of IBM!
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Search existing ideas
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updateson them if they matter to you. If you can't find what you are looking for,
Post your ideas
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Specific links you will want to bookmark for future use
C++ fstream should return relative record for DB2 PF-SRC when using tellg() method.
The C++ class ifstream supports both IFS files as well as IBM i Db2 database files, and specifically Db2 Source Physical File Members as "text files". ifstream f("/home/cozzi/file.txt"); is treated via the interface the same as: ifstream f("/qsys.lib/mylib.lib/qtxtsrc.file/log.mbr");
Both files may be read using >> or the getline() method. When using the ifstream::seekg() method, both position the file to the proper location; character position for IFS stream files, and relative record number for Db2 Database Source File Members.
However, the tellg() method (the routine used to retrieve the current position in the file) is disabled while processing Db2 Database Source File members while enabled for IFS text stream files. This method should return the current relative record number when the ifstream object is referencing Db2 Database Source File Members. Currently it returns only -1.
This allows programmers to position the Db2 for i Database Source File member to another location in the file/member while it is being processed. This is a fundamental capability. The seekg() method does provide this capability, however the ability to "know" what record you want to position to is normally obtained at runtime, thus needs to be returned via tellg() or similar. Today this is not possible.
Do not place IBM confidential, company confidential, or personal information into any field.