Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: How to close a file opened using "OUTPUT" in Outtr
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: 6968
Location: porcelain throne

PostPosted: Thu Jan 08, 2009 10:20 pm    Post subject:
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Jan 12, 2009 8:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us