IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to close a file opened using "OUTPUT" in Outtr


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Thu Jan 08, 2009 9:09 pm
Reply with quote

Hi,
I got stuck at the following issue, here is what i am trying to do

After submitting job thru rexx, i am trying to go to IOF and get the JESMSGLG from IOF to a seq. file. for doing this i used "OUTPUT" in "OUTTRAP" in the following way

x = outtrap(out.)
"OUTPUT "part1" PRINT ('TSJV.A9ZCCS4.CCS.OUTPUT') "
x= output(off)

now i am getting the entire log in the seq. file. I want to extract only a selected lines from this file, so i tried to read this file using EXECIO and rexx thrown me a error message stating that the file is not free.

Can any one suggest me how to close this file or the way i can read this file after this outtrap step?

Please let me know in case if you need any other information.

Thanks,
Surya
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Thu Jan 08, 2009 10:20 pm
Reply with quote

how are you allocating the file. - Please, the commands you have issued to allocate the file.
Back to top
View user's profile Send private message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Fri Jan 09, 2009 4:05 pm
Reply with quote

Actually i the file is already existing and i did not use any special commands to allocate the file in rexx program. I done exactly the way i mentioned earlier.

Thanks,
Surya
Back to top
View user's profile Send private message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Mon Jan 12, 2009 3:26 pm
Reply with quote

Aster doing some research I got the solution, thanks for the support
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Mon Jan 12, 2009 8:04 pm
Reply with quote

karisurya wrote:
Aster doing some research I got the solution, thanks for the support
What is this all about ?
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts How to close Datacom MUF URT used by ... CICS 0
No new posts To Sort detail records in a file with... SYNCSORT 5
Search our Forums:


Back to Top