MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

doubt

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
kirank
Beginner


Joined: 21 Apr 2004
Posts: 61
Topics: 33
Location: hyderabad

PostPosted: Sat May 15, 2004 12:54 am    Post subject: doubt Reply with quote

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
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Sat May 15, 2004 4:14 am    Post subject: Reply with quote

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
View user's profile Send private message
kirank
Beginner


Joined: 21 Apr 2004
Posts: 61
Topics: 33
Location: hyderabad

PostPosted: Sat May 15, 2004 4:53 am    Post subject: Reply with quote

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
View user's profile Send private message
kirank
Beginner


Joined: 21 Apr 2004
Posts: 61
Topics: 33
Location: hyderabad

PostPosted: Sat May 15, 2004 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon May 17, 2004 1:31 am    Post subject: Reply with quote

Kirank, you can do a "TSO ALLOC" to assign the file(s) and then execute your load.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group