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 seqential file opened by a macro in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
amolj

New User


Joined: 08 Nov 2006
Posts: 21
Location: india

PostPosted: Tue Nov 28, 2006 6:32 pm    Post subject: How to Close a seqential file opened by a macro in REXX
Reply with quote

hi all ..... icon_smile.gif

i have written a macro to close a sequential file .....

CLOSEMAC
#######################################
/*REXX*/
"ALLOC DA('TEBTOTS.EFT.DSN2') F(INDD) OLD"
"EXECIO 0 DISKR INDD (FINIS"

#########################################

The file 'TEBTOTS.EFT.DSN2' is used by some other macro called PDSEDIT ...
after executing macro PDSEDIT i am closing the file through macro CLOSEMAC... i cant close this file in macro PDSEDIT due to logic reasons..

but the CLOSEMAC is not closing it properly....
please help me.....
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Nov 28, 2006 7:15 pm    Post subject:
Reply with quote

What about FREE?

O.
Back to top
View user's profile Send private message
amolj

New User


Joined: 08 Nov 2006
Posts: 21
Location: india

PostPosted: Tue Nov 28, 2006 7:50 pm    Post subject:
Reply with quote

hi ..

i dont know the syntax of FREE .... please tell me the syntax....

thank you.....
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Nov 28, 2006 9:17 pm    Post subject: Re: How to Close a seqential file opened by a macro in REXX
Reply with quote

TSO HELP FREE.

icon_rolleyes.gif
Back to top
View user's profile Send private message
amolj

New User


Joined: 08 Nov 2006
Posts: 21
Location: india

PostPosted: Thu Nov 30, 2006 11:25 am    Post subject: hi
Reply with quote

/*REXX*/
"ALLOC DA('TEBTOTS.EFT.DSN2') F(INDD) OLD"
"ISREDIT FREE DDNAME('INDD')"

i tried with FREE ... but it not working..... tell me if the syntax for FREE is correct? ... or is there any other way ....
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Fri Dec 01, 2006 12:28 am    Post subject:
Reply with quote

FREE is not an Edit-Macro command, it is a TSO command. You shouls invoke it in the same way you invoke ALLOC.

O.
Back to top
View user's profile Send private message
amolj

New User


Joined: 08 Nov 2006
Posts: 21
Location: india

PostPosted: Mon Dec 04, 2006 12:44 pm    Post subject:
Reply with quote

hi .....

according to my requirement the dataset 'TEBTOTS.EFT.DSN2' is used by my macro(PDSEDIT5)... i cannot close it in the macro(PDSEDIT5)...

after executing the macro(PDSEDIT5) once ....i want to make changes in the dataset 'TEBTOTS.EFT.DSN2' and again run the same macro (PDSEDIT5) ... while i run the macro(PDSEDIT5) second time the changes in the dataset'TEBTOTS.EFT.DSN2' are not reflected...

i tried closing the dataset 'TEBTOTS.EFT.DSN2' by the macro command
"FREE DATASET('TEBTOTS.EFT.DSN2')" ...it is successfully closing the dataset ....but when i make changes in the dataset 'TEBTOTS.EFT.DSN2' and run macro (PDSEDIT5) second time the chnages are not reflected ...
every time i have logoff from mainframe if i make changes in the dataset
'TEBTOTS.EFT.DSN2' so that changes are properly reflected....


please help me... how can i free the dataset from the memory.....so that i dont have to logoff every time
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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