# Renaming output to reflect name of input using ArcGIS ModelBuilder?

Every quarter I will be replacing the two CSV files at the beginning of the model. I would like the final Excel file and feature class to each have a name that reflects the input CSV file name (please see model below). For the example below, I would like to have them renamed as: 2015Q1, as a reflection of the names of the input CSV files.

Is this possible to do?

I am not using 'iteration', which most of the similar questions are referring to.

I would recommend the Parse Path tool in ModelBuilder. Make sure to select the "Name" parse type. In this (very simplified) model, I included a "workspace" variable that I can call at any point and combine with the name value from the parse path output. The syntax for that would be %Workspace%\%Value% in the output path parameter. You should also attach a precondition so that the parse path tool is in sync with the rest of the model.
• You would want to attach Parse Path to the input variable "2015Q1_B.CSV". Then simply attach %Value% to any output path (e.g. C:\path\to\some\folder\%Value%. A precondition may not be necessary if you are not iterating through features. – Aaron May 13 '15 at 18:50