View previous topic :: View next topic |
Author |
Message |
kirank Beginner
Joined: 21 Apr 2004 Posts: 61 Topics: 33 Location: hyderabad
|
Posted: Sat May 15, 2004 12:54 am Post subject: doubt |
|
|
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 |
|
|
MikeBaker Beginner
Joined: 04 May 2004 Posts: 96 Topics: 9
|
Posted: Sat May 15, 2004 4:14 am Post subject: |
|
|
Kirank,
You know exactly what it is that you want to do, therefore, why do you not try it out and see what happens?? One of the most valuable skills for any programmer to (gradually) acquire is to be able to interpret error messages from the compiler, etc.
As for your "DD1", I am not sure if the compiler would even allow a value in the 01 level for a assign label/ddname. And even if it did, what are you going to put in your JCL?? The ASSIGN refers to the ddname in the JCL.
As for the EXTERNAL, there has been sufficient discussion of this already in this Forum. Use the search facility. |
|
Back to top |
|
|
kirank Beginner
Joined: 21 Apr 2004 Posts: 61 Topics: 33 Location: hyderabad
|
Posted: Sat May 15, 2004 4:53 am Post subject: |
|
|
Hi Mike,
Here, I'm not using jcl. Just im executing the program through prompt. If u know the answer
Pls send the answer. |
|
Back to top |
|
|
kirank Beginner
Joined: 21 Apr 2004 Posts: 61 Topics: 33 Location: hyderabad
|
Posted: Sat May 15, 2004 5:39 am Post subject: |
|
|
Hi Ravi,
i'm really sorry that i did not frame the question properly. Actually Mike said
"I'm not sure" (pls see the Mike's answer). I thought he doesn't know the answer exactly. That's why i wrote as "If u know the answer pls send the answer". Really i want to convey in the polite manner.
To be frankly, i never tried the above query and i dont have my PC also.
Once again im very sorry for the inconvinience |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Mon May 17, 2004 1:31 am Post subject: |
|
|
Kirank, you can do a "TSO ALLOC" to assign the file(s) and then execute your load. |
|
Back to top |
|
|
|
|