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
 

 

Allocate a file using REXX

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

New User


Joined: 18 Apr 2007
Posts: 23
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

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2050
Location: Silicon Valley

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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
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: 8593
Location: Back in jolly old England

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
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am


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