IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Allocate a file using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Jul 29, 2008 3:30 am
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

Superior Member


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

PostPosted: Tue Jul 29, 2008 11:46 am
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: 8797
Location: Welsh Wales

PostPosted: Tue Jul 29, 2008 12:08 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top