× 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.



A record format name is a name that's assigned to a particular format of a record. In other words, to the field names, data types, and positions within the record that makes up the format.

Therefore, if you want to specify a record format name, you must also specify all of the field details!

In V5R4, you can specify a record format name from within an SQL Create Table statement.

In previous releases, the only way to (directly) specify the record format name is with DDS source.

It can't be done with fopen(), because fopen() doesn't let you specify the fields and their attributes. But, your C program could create a temporary source PF in QTEMP, write DDS to that source PF, and then run the CRTPF command to create a file with the fields and record format information all specified.


GASPARE LATONA wrote:
When creating a new file in QSYS using fopen, is there any way of
specifying the record format name?

Alternatively, once the file is created, is there any way of changing
the record format name (of a program described physical file)?

Alternatively, how can I create a physical file from my c program and
specify my own record format name?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.