FLAM Issue Tracker - FL5
View Issue Details
0000440FL54. Element, Byte, Record or other APIpublic2014-05-16 07:502014-05-16 14:14
Falk Reichbott 
Falk Reichbott 
normalfeatureN/A
resolvedfixed 
GeneralGeneralGeneral
5.0 
5.05.0 
0000440: Add info function for files to byte and record interface
The INFO command are currently only available as sub program interface. But it would be useful to have this function also for the FLUC byte and record interface where the information are written to the memory.

FCRINF(RTC,"get.file='test.gz'",format,buflen,buffer)
No tags attached.
Issue History
2014-05-16 07:50Falk ReichbottNew Issue
2014-05-16 07:50Falk ReichbottStatusnew => assigned
2014-05-16 07:50Falk ReichbottAssigned To => Falk Reichbott
2014-05-16 14:14Falk ReichbottNote Added: 0000461
2014-05-16 14:14Falk ReichbottStatusassigned => resolved
2014-05-16 14:14Falk ReichbottFixed in Version => 5.0
2014-05-16 14:14Falk ReichbottResolutionopen => fixed
2014-12-02 07:43Falk ReichbottCategory4. Element, Byte or Record API => 4. Element, Byte, Record or other API

Notes
(0000461)
Falk Reichbott   
2014-05-16 14:14   
Add a new function to FLUC byte interface (fcbinfo) and a new function as corresponding stup to the FLUC record interface (FCRINF).

/**
 * Provide certain information
 *
 * This function can be used to determine different information about
 * files or supported CCSID's and other stuff. For this you must provide
 * a info string to define which information are requested. You can define
 * the format how the information will be formated. The information
 * will be written to an output buffer. If the buffer too small a FMLRTC_LEN
 * error will be returned, the length will be set to the required length and
 * the buffer is filled up to the maximum with the data.
 *
 * The info definition string uses the same syntax as the get method of
 * the FLCL INFO command. The complete syntax and help can be determined
 * with the corresponding functions below. The zero-terminated string must
 * start with 'GET.' followed by the corresponding method (FILE/CCSIDS/...).
 *
 * Examples: "GET.FILE='TEST.TXT'"
 * "GET.CCSIDS"
 *
 * Please use:
 * 'FCRHLP/FCRSYN(FCR_INFO,10,NULL)'
 * 'FCRHLP/FCRSYN(FCR_INFO,10,NULL)'
 * for more information.
 *
 * @param [OUT] rtc INTEGER Return code\n
 * @param [IN] infolen INTEGER Length of info string
 * @param [IN] infostr STRING Info string with GET instructions
 * @param [IN] format INTEGER Format specification for the output buffer
 * @param [IN][OUT] buflen INTEGER Size/length of the output buffer
 * @param [OUT] buffer STRING Output buffer (data format depends on format parameter)
 */
extern void STDCALL FCRINF(int* rtc,const int* infolen, const char* infostr,
                           const int* format, int* buflen, char* buffer);