sr_newest_file_c

	status.i4.v = sr_newest_file_c(data_source.i4.v, category.i4.v,
				       file_number.i4.r)

	This routine will return the file number of the newest
	save/restore or SDA file.

	data_source	source of data
			(SRMNGR_NORMAL -> normal save/restore files,
			 SRMNGR_SDA_DATA -> SDA data)
	category	type of files
			If the data source is SRMNGR_NORMAL, this argument
			determines which supersystem to check.
			(SR_GLOBAL -> global supersystem,
			 SR_LINAC -> Linac supersystem,
			 SR_BOOSTER -> Booster supersystem,
			 SR_MAININJECTOR -> Main Injector supersystem,
			 SR_EXTERNALBEAMS -> external beams supersystem,
			 SR_TEVATRON -> Tevatron supersystem,
			 SR_MUON -> Muon supersystem,
			 SR_FRIG -> refrigerator supersystem,
			 SR_MISC -> miscellaneous supersystem,
			 SR_ARCHIVE -> archive supersystem,
			 SR_RECYCLER -> Recycler supersystem,
			 SR_SHOTS -> shots supersystem,
			 SR_CIRCULAR -> circular supersystem,
			 SR_MINIBOONE -> MiniBooNE supersystem,
			 SR_NUMI -> NuMI supersystem,
			 SR_PXIE -> PXIE supersystem,
			 SR_NML -> NML supersystem,
			 SR_MTA -> MTA (Muon Test Area) supersystem,
			 SR_SYCONFIG -> Switchyard configuration supersystem,
			 SR_CMTF -> CMTF supersystem,
			 SR_ALL_SYSTEMS -> all supersystems,
			 CLIB_DEFAULT_ARG -> previously selected supersystem)
			If the data source is SRMNGR_SDA_DATA, this argument
			determines which SDA usage to check.
			(SDA_COLLIDER_SHOT_USAGE_NUMBER -> Collider shot,
			 SDA_PBAR_XFER_SHOT_USAGE_NUMBER -> pbar transfer shot,
			 SDA_RECYCLER_SHOT_USAGE_NUMBER -> Recycler shot)
	file_number	returned newest file number

	This function returns status values as follows:

	OK			success
	CLIB_INVARG		invalid data source
	CLIB_NO_SUCH		no such save/restore category or SDA usage
	CLIB_MEMFAIL		dynamic memory allocation failure
	SQL_xxx			error reading database

	This function requires the following include files:

	cbslib_h, acnet_errors_h

	Related functions:

	sr_oldest_file_c, sr_maximum_file, sr_file_menu_c, sr_file_devices_c,
	sr_data_length_c, sr_sda_data_lengths_c, sr_sda_cases_present_c,
	sr_sda_subcases_present_c, sr_sda_num_subcases_c, sr_get_device_c,
	sr_get_device_raw_c, sr_get_array_device_c, sr_get_snapshot_c,
	sr_read_snapshot_c, sr_snapshot_header_c, sr_snapshot_info_c,
	sr_snapshot_info_list_c, sr_is_on_c, sr_is_positive_c, sr_status_c,
	sr_status_text_c, sr_restore_device_c, sr_sda_case_times_c

	C/C++ usage:

	int	status;
	int	data_source = SRMNGR_NORMAL;
	int	category = SR_GLOBAL;
	int	file_number;

	status = sr_newest_file_c(data_source,category,&file_number);