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

is there any command in REXX to shift a word in string


IBM Mainframe Forums -> CLIST & REXX
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
shakti

New User


Joined: 20 Jan 2004
Posts: 42

PostPosted: Thu Sep 25, 2008 2:58 pm
Reply with quote

Hi ,

I wanted to do a shift of word in string to a particular position.

for example.

01 ws-var pic x(20) value 'XXXXXXXXXXXXXXXXXXXX'

The above needs to be moved to

01 WS-VAR PIC x(20) Value

'XXXXXXXXXXXXXXXXXXXX'

Ideally, I need PIC word should start at 40 position and value should be in 54 position. Rest of the string should be in next line...


Thanks in advance..
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Sep 25, 2008 3:04 pm
Reply with quote

why dont' You watch the topics You started

You got already some replies on how to do it in

http://ibmmainframes.com/viewtopic.php?p=155347&highlight=#155347


this topic will be locked
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top