Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Allocate a file using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
hariharan_82

New User


Joined: 18 Apr 2007
Posts: 11
Location: Chennai

PostPosted: Tue Jul 29, 2008 2:57 am    Post subject: Allocate a file using REXX
Reply with quote

Hi all,

I am trying to use REXX macro to pass values/change the INCLUDE COND in my SORT card.

1) To begin with I need to know how to allocate a file using REXX
2) How to open and edit the file each time the control parameters are changed. i.e.
SORT FIELDS=COPY
INCLUDE COND=(1,3,CH,EQ,C'HRE')

Here the value HRE will not be th same always. I want to pull HRE value from REXX (I mean the user would end up entering it)

Is this possible> If so How do I do it?

Thanks,
Hariharan
Back to top
View user's profile Send private message
References
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 543
Location: work

PostPosted: Tue Jul 29, 2008 3:30 am    Post subject: Reply to: Allocate a file using REXX
Reply with quote

TSO books.

Look at the Rexx Reference and also Command Reference.

1. use the ALLOCATE command of TSO to allocate a dataset.
2. use SAY rexx instruction to ask the user.
3. use PARSE PULL rexx instruction to read information from the terminal.
4. use rexx EXECIO command to write the file.
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


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

PostPosted: Tue Jul 29, 2008 11:46 am    Post subject:
Reply with quote

Hi Pedro,

"TSO books" link is excellent, great collection, Thanks..Gratitude.. icon_smile.gif. Kept for my future reference..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3564
Location: Brussels once more ...

PostPosted: Tue Jul 29, 2008 12:08 pm    Post subject: Re: Allocate a file using REXX
Reply with quote

hariharan_82 wrote:
Hi all,

I am trying to use REXX macro to pass values/change the INCLUDE COND in my SORT card.

1) To begin with I need to know how to allocate a file using REXX
2) How to open and edit the file each time the control parameters are changed. i.e.
SORT FIELDS=COPY
INCLUDE COND=(1,3,CH,EQ,C'HRE')

Here the value HRE will not be th same always. I want to pull HRE value from REXX (I mean the user would end up entering it)

Is this possible> If so How do I do it?

Thanks,
Hariharan

Personally I would look at the ISPF file tailoring services

ISPF services are HERE !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1