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: 2033
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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