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

Display record from input file by position using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Karthick.natesan

New User


Joined: 20 Jan 2012
Posts: 4
Location: India

PostPosted: Tue Feb 14, 2012 3:27 pm
Reply with quote

Hi all,
I am new to rexx, can any one help me to display record from input by position using REXX program
for eg I want to display first record only from position 5 -10
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Feb 14, 2012 3:38 pm
Reply with quote

Hi,

look at the SUBSTR function.
eg.

Code:
X        = SUBSTR(RECORD,005,010)


Gerry
Back to top
View user's profile Send private message
Karthick.natesan

New User


Joined: 20 Jan 2012
Posts: 4
Location: India

PostPosted: Tue Feb 14, 2012 5:32 pm
Reply with quote

Hi Gcicchet,
Thanks it worked!!! icon_biggrin.gif
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
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
Search our Forums:

Back to Top