Highlighted
Absent Member.
Absent Member.
819 views

[archive] corresponding COBOL phrase for "unset Filename"

[Migrated content. Thread originally posted on 18 August 2003]

I have to replace UNIX script with appropriate COBOL program.

At one point the UNIX script does file assignment

FILE1=SOMEFILE1; export FILE1
FILE2=SOMEFILE2; export FILE2
. . .
. . .
. . .
runcbl -c program1.cfg program1.acu
. . .
. . .
. . .
unset FILE1
unset FILE2

File assignment can be replaced by SET "FILE1" to "SOMEFILE1"
but what will be the replacement for "unset FILE1". Is there a syntax for that or some dummy value has to be put instead?

Thanks in advance

Larry
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] corresponding COBOL phrase for "unset Filename"

Hi Larry.

The best way to unset the value of a filename is to set it to either spaces or a temporary value, which can be deleted later, as there is no way to UNSET this corresponding value.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] corresponding COBOL phrase for "unset Filename"

As I suspected but wanted to be sure.
Thanks Shaun
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.