Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
Time types : I want to use Binary Absolute time and Character Absolute time types, but I have some problems to manipulate them through ILV constructions : For Binary Absolute time type I can't build correctly the Descriptor to write into one ILV list, I have tried such parameters following the SRM : mcc_w_maxstrlen = sizeof(unsigned short); ( 16 bytes) mcc_b_dtype = DSC_K_DTYPE_T; (following SRM definitions ) OR mcc_b_dtype = DSC_K_DTYPE_WU; ( following mcc_interface_def.h definitions ) mcc_b_class = DSC_K_CLASS_S; mcc_l_dt = MCC_K_DT_BIN_ABS_TIM; But I always obtain the same error : Invalid string descriptor. For Character Absolute time, could somebody give me some examples of initialisation of fields and manipulation of this type.How copiyng into this type an ascii time for example.. I need to adapt a VMS binary time ( 64 bytes) into one of those 2 types, because I need a string display and a string user-input. Have you got some other ideas ? Pascale.
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
457.1 | TOOK::SWIST | Jim Swist LKG2-2/T2 DTN 226-7102 | Tue Nov 06 1990 08:33 | 5 | |
your descriptor is too small. sizeof(short) is 16 bits, not 16 bytes. A better way is to use the MCC_TIME_CREATE service to get yourself a time descriptor of the appropriate time. | |||||
457.2 | mcc_time routines quite helpful | GOSTE::CALLANDER | Mon Nov 26 1990 14:21 | 9 | |
Along with the time_create mentioned by Jim there are also a number of other mcc_time routines. These routines range in functions from things like get_current to a copy command. In the latest SRM, just coming available now (it has been a long wait getting them from the presses) these routines are documented in much better detail than previously. |