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
 

 

Need help in rexx .

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

New User


Joined: 27 Mar 2014
Posts: 1
Location: india

PostPosted: Mon Apr 07, 2014 11:09 pm    Post subject: Need help in rexx .
Reply with quote

Hi i need help in reading a file using rexx. I want to read input file line by line and copy the words in an array.
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Mon Apr 07, 2014 11:33 pm    Post subject:
Reply with quote

Please tell the precise problem that you are having. Show code and data enclosed in Code tags to align them, a relevant portion of the trace, and the error message(s) including the message number(s).
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Tue Apr 08, 2014 3:06 am    Post subject: Reply to: Need help in rexx .
Reply with quote

Or read up on EXECIO. You can do that in 3 statements including dataset (not file) allocation and free. Note that Rexx does not have arrays but stem variables.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Tue Apr 08, 2014 3:48 am    Post subject:
Reply with quote

I don't know much about REXX but this is what I can suggest you to start with along with others,

Code:
"ALLOC FI(LNAME) DA('MY.PS.READ') SHR"
                      "EXECIO * DISKR LNAME(STEM ARRAY. FINIS"
                      "FREE FI(LNAME)"
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Tue Apr 08, 2014 1:03 pm    Post subject: Reply to: Need help in rexx .
Reply with quote

Rohit,

I feel I just wasted my time posting my response the way I did. I could easily have done what you did but then it would just be cut and pasted and nothing learned.

If TS is keen then he will still go and read up on EXECIO and probably should as there is a very nice subtlety with EXECIO which makes reading the stem afterwards a doddle.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Tue Apr 08, 2014 3:39 pm    Post subject:
Reply with quote

Nic,

I concur with you and I should have been a silent being what you posted.
I take this as a note ..

TS,
Please have a gogle or a forum search done and I am sure you would get many information to start with Nic's suggestion and may be starting from ,

http://www.ibmsystemsmag.com/mainframe/tipstechniques/applicationdevelopment/A-Beginner-s-Guide-to-the-REXX-Programming-Languag/
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


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