View previous topic :: View next topic
|
Author |
Message |
kumarcoolboy
New User
Joined: 28 May 2009 Posts: 10 Location: Hyderabad
|
|
|
|
Hello All,
Can someone tell me if we can display the FILE VARIABLE that is being used in a PL/I program ? If yes, then how ?? |
|
Back to top |
|
|
Srihari Gonugunta
Active User
Joined: 14 Sep 2007 Posts: 295 Location: Singapore
|
|
|
|
Kumar,
Can you please elaborate the requirement? Have you checked the builtin functions related to FILE in PLI? |
|
Back to top |
|
|
kumarcoolboy
New User
Joined: 28 May 2009 Posts: 10 Location: Hyderabad
|
|
|
|
hi Srihari,
I have coded a PLI program where in am using FILE VARIABLE. Am passing this as an argument to a procedure am calling. I just want to know the value that is being passed as the argument i.e. the value in the file variable that is being passed. Hope this helps. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
No, you cannot display such data (ditto for task, entry and area variables)
Robert |
|
Back to top |
|
|
kumarcoolboy
New User
Joined: 28 May 2009 Posts: 10 Location: Hyderabad
|
|
|
|
ok, thank you very much...... |
|
Back to top |
|
|
arivazhagan_k
New User
Joined: 05 Dec 2007 Posts: 57 Location: chennai
|
|
|
|
Passing FILE variable to another proc is not appropriate. But we use POINTERs to pass the data. it will improve performance also...... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
Passing FILE variable to another proc is not appropriate |
please explain why not ? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
arivazhagan_k wrote: |
Passing FILE variable to another proc is not appropriate. |
Says who? |
|
Back to top |
|
|
arivazhagan_k
New User
Joined: 05 Dec 2007 Posts: 57 Location: chennai
|
|
|
|
Quote: |
please explain why not ? |
Suppose file variable holding 10000 bytes instead of passing those bytes information we can pass the pointer. it will improve the program excution speed. If i am wrong i am happy to correct me. Thanks. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
arivazhagan_k wrote: |
Quote: |
please explain why not ? |
Suppose file variable holding 10000 bytes instead of passing those bytes information we can pass the pointer. it will improve the program excution speed. If i am wrong i am happy to correct me. Thanks. |
Nuff said, you very obviously don't have a clue what a file variable actually is.
Maybe you should RTFM before you start blabbering away, a file variable has a size of 4 (F O U R) bytes. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
arivazhagan_k
New User
Joined: 05 Dec 2007 Posts: 57 Location: chennai
|
|
|
|
hi enrico,
Thanks for the valuable clarification.
hi prino,
Thanks for the correction. I misunderstood file variable with file structure. |
|
Back to top |
|
|
|