[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #ZSB-314239]: generate unique files

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [LDM #ZSB-314239]: generate unique files
  • Date: Thu, 18 May 2017 15:16:31 -0600

Erik,

The sequence-number is formatted using the conversion specification "%u" -- so 
the
string will only have as many characters as are necessary to format the 32-bit
sequence-number (the maximum number of characters will be 9).

> Do you know if the seq number ever expands past 9 digits?
> 
> Is there a way to truncate the 9 digits to something less?
> 
> The database admin would like to cut it down, because we are storing the
> filenames in the database, so adding an extra 9 characters takes up a lot
> of space over time.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: ZSB-314239
Department: Support LDM
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.