# Report &= Report1 - C6 Clarion Templates

**URL:** <https://clarionhub.com/t/report-report1-c6-clarion-templates/7722>\
**Category:** questions\
**Tags:** report, c6, templates\
**Created:** [December 9, 2024, 1:55am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722 "2024-12-09T01:55:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [December 9, 2024, 1:55am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/1 "2024-12-09T01:55:51Z")

</div>

I have a C6 Clarion template application in which I want to use the "People.App" technique of assigning the Report definition another report definition. i.e.

Report &= Report1

This is working well, the report generates and previews perfectly, but...the application hangs when I return to the calling procedure. It just shows a wait cursor.

Since this is a Clarion template application is there something extra I need to do when the report is finished with?

---

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [December 9, 2024, 2:49am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/2 "2024-12-09T02:49:18Z")

</div>

```auto
Report &= ''
CLOSE(Report)

```

Seems to have fixed it?

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [December 9, 2024, 5:11am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/3 "2024-12-09T05:11:46Z")

</div>

The delay could be about the deleting of the wmf files. [Test if Close(Report) is SLOW on your System? – Mine 100x slower than C6](https://clarionhub.com/t/test-if-close-report-is-slow-on-your-system-mine-100x-slower-than-c6/4491)

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [December 9, 2024, 5:13am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/4 "2024-12-09T05:13:15Z")

</div>

I’m guessing you have some un-deleted temp files as a result of that 🙂

> [@PurpleEdge2214](#):
>
> ```auto
> Report &= ''
> CLOSE(Report)
> 
> ```
> 
> Seems to have fixed it?

---

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [December 9, 2024, 5:43am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/5 "2024-12-09T05:43:10Z")

</div>

Thanks Jeff, I don’t understand why deleting temp files would cause it to hang? (It’s a 1 page report) Do you think it might be trying to delete non-existent temp files?

I don’t know why report &= ‘’ would fix it either, if it has?

But I haven’t investigated what’s in the temp folder, yet.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [December 9, 2024, 1:54pm UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/6 "2024-12-09T13:54:03Z")

</div>

Sorry, Geoff - Didn’t notice the C6 part.

But I suspect the &= ‘’ is not an actual fix.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [December 9, 2024, 4:28pm UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/7 "2024-12-09T16:28:21Z")

</div>

Is your actual report generated by the templates?

It could it be possible that the report is already closed by the template.

What does STATUS(Report) show, before dereferencing? [status\_return\_file\_status\_.htm [Clarion Community Help]](https://clarion.help/doku.php?id=status_return_file_status_.htm)

---

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [December 10, 2024, 2:28am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/8 "2024-12-10T02:28:33Z")

</div>

Thanks Jeff, The original “report” is template generated and the CLOSE(Report) is template generated.

Setting Report &= ‘’ before, or after, the CLOSE(Report) prevents the procedure from hanging.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [December 10, 2024, 3:11am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/9 "2024-12-10T03:11:16Z")

</div>

What is the scope of the declaration of your &REPORT reference variable? Is it in the same place as the actual report (e.g. within the report PROCEDURE) or is it global or other?

I’ve seen occurrences where a global reference assigned to a non-global “thing” went wonky when the non-global “thing” no longer existed.

Are you sure the hang is within the report PROCEDURE, or could it be after the procedure exited, leaving your global &REPORT pointing to a no-longer-valid piece of memory?

Just grasping at straws 🙂

---

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [December 10, 2024, 4:38am UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/10 "2024-12-10T04:38:50Z")

</div>

Yeah, thanks again Jeff, all input is valuable since I’m in the dark 😁

I’m basically doing what David Bayliss does in the supplied People.app, except that is done using ABC templates and I’m stuck with Clarion templates. I was actually surprised it worked at all, but it is!

All the reports are declared in the local data area, I’ve now got 3 additional reports declared straight after the original which is designed within the template designer.

I’ve not observed any bad behaviour after assigning Report &- ‘’, and yes, it is hanging in the report procedure without that line of code.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [December 10, 2024, 3:49pm UTC](https://clarionhub.com/t/report-report1-c6-clarion-templates/7722/11 "2024-12-10T15:49:05Z")

</div>

And the &REPORT is where?
