Declare file in Subprogram



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Declare file in Subprogram

Postby ravi11081992 » Tue Sep 10, 2019 10:19 pm

Folks,

I got one weird requirement to use the file in subprogram
But not in main program

I need to declare, open, write and close in subprogram

Please help me out how I can code this

Thanks
ravi11081992
 
Posts: 19
Joined: Mon Apr 30, 2018 5:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Declare file in Subprogram

Postby Robert Sample » Wed Sep 11, 2019 12:06 am

I need to declare, open, write and close in subprogram

Please help me out how I can code this
Have you tried this yet? If so, what results did you get? If not, why have you not tried it yet?
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post