Skip to main content

[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

[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
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.

[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
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.

[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
As I suspected but wanted to be sure.
Thanks Shaun