---
title: "Buffer Modifications v3.2.0.1"
canonical: "https://servicedesk.maxgeo.com/space/DS/1797029892/Buffer+Modifications+v3.2.0.1"
format: markdown
---
|  |  |  |  |
| --- | --- | --- | --- |
| Application: | DataShed5 | Build Number: | v3.2.0.1 |

---

> Macro (iframe)

## Transcript

```
Welcome to this quick training session on Buffer Modifications in [00:00:10] DataShed5. 
[00:00:10] In this video, you'll learn how to use the powerful UPDATE TO and SQL UPDATE tools to transform your import buffer data with precision and [00:00:20] flexibility. 
[00:00:20] Starting from version 3.2, DataShed5 supports selected update functions and SQL statements within saved layouts. 
[00:00:28] To begin, go to [00:00:30] Import Layout Configurations and choose your layout type from the dropdown menu. 
[00:00:35] Once you've selected a layout, you'll see options for buffer [00:00:40] modifications. 
[00:00:42] These include: 
[00:00:44] Update To, 
[00:00:45] SQL Delete, 
[00:00:46] and SQL Update actions. 
[00:00:48] The SQL UPDATE tool has three [00:00:50] main uses: 
[00:00:51] One — Set a field equal to another field or a constant. 
[00:00:55] Two — Use a WHERE clause to filter which records to update. 
[00:00:59] Three — [00:01:00] Apply conditional logic using CASE WHEN statements. 
[00:01:03] Here are a few examples: 
[00:01:08] Set a field: 
[00:01:09] Lease_ID = a [00:01:10] Tenement name WHERE Prospect = 'GOBLIN' 
[00:01:12] Use CASE WHEN: 
[00:01:16] If the Hole_ID is MAX11, then set Prospect to [00:01:20] GOBLIN. 
[00:01:20] If the Hole_ID is MAX16, then set Prospect to PARROT. 
[00:01:24] For all other Hole_ID values, keep Prospect as it is. 
[00:01:28] IIF function 
[00:01:29] If [00:01:30] Date_Started is a valid date, convert it to a date value. 
[00:01:33] If it isn’t a valid date, use the current date instead. 
[00:01:37] Both UPDATE TO and SQL UPDATE [00:01:40] support a wide range of functions, including: 
[00:01:42] ISNULL, to replace nulls 
[00:01:44] IIF, for conditional logic 
[00:01:46] CONVERT, to change data types 
[00:01:48] GETDATE, DATEADD, and [00:01:50] DATEDIFF for date operations 
[00:01:52] And text functions like CONCAT, LEFT, RIGHT, TRIM, and REPLACE. 
[00:01:56] Functions can be chained using sequence [00:02:00] numbers. 
[00:02:00] For example: 
[00:02:01] First, concatenate DataSet, Hole_ID, and five spaces into Lease_ID. 
[00:02:05] Then, in a second step, trim that result in the Comments [00:02:10] column. 
[00:02:10] The sequence ensures each step builds on the previous one. 
[00:02:14] Once your buffer modifications are configured, click [00:02:20] Save. 
[00:02:21] Then return to the Import Data screen, select your layout, and load your file. 
[00:02:26] If your functions involve dates, always apply a date [00:02:30] format.  
[00:02:41] Your import buffer will now reflect the modifications you've applied— 
[00:02:46] streamlining your data transformation process and [00:02:50] improving consistency.  
[00:02:51] That’s a wrap on Buffer Modifications in DataShed5. 
[00:02:58] For more examples and [00:03:00] detailed function references, check out the user guides. 
[00:03:03] Thanks for watching! 

```