View previous topic :: View next topic
|
Author |
Message |
kiran
New User
Joined: 08 Apr 2004 Posts: 25 Location: hyd
|
|
|
|
Hi,
my query is , if suppose, we've
SELECT FILE1 ASSIGN TO DD1
ORGANIZATION ..........
ACCESS MODE..........
FILE STATUS ..........
can we declare DD1 as working-storage section variable like:
working-storage section.
01 DD1 pic x(20) value 'c:\nnnn\txt'.
And also i want to know about " EXTERNAL in the SELECT clause".
pls send me the answer |
|
Back to top |
|
|
Nitin Tambe
New User
Joined: 20 May 2004 Posts: 1
|
|
|
|
from the value you are passing in to the variable it seems that it is a PC-Cobol if yes then u can very much do it. |
|
Back to top |
|
|
Arun Joseph
New User
Joined: 30 Mar 2005 Posts: 13 Location: India
|
|
|
|
I think u have to give
01 FILE1 pic x(20) value 'c:\nnnn\txt'
instead of
01 DD1 pic x(20) value 'c:\nnnn\txt'.
Am i right? |
|
Back to top |
|
|
nave
New User
Joined: 16 May 2005 Posts: 10 Location: bangalore,india
|
|
|
|
hi kiran,
you should not declare ws variable as DD1.since it will show some error during run time.
as exetrnal means the variable can be declared with any no of pic clause in different subroutines. |
|
Back to top |
|
|
|