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
 
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: 2081
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
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm

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