Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6970
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 VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us