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

Reference modification of arrays in pl1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
PL1user

New User


Joined: 26 Nov 2008
Posts: 13
Location: UK

PostPosted: Mon Jun 08, 2009 6:34 pm
Reply with quote

Hi

Is reference modification of an array element possible in Pl1 ?

For example : array(1) (10:2) = 'pl'

If array(1) is 15 bytes I want to move 'pl' to the 11th & 12th byte.

Pls advice
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jun 08, 2009 6:38 pm
Reply with quote

check in the manual the SUBSTR builtin function and the SUBSTR pseudovariable
Back to top
View user's profile Send private message
donateeye
Warnings : 2

New User


Joined: 01 Jun 2007
Posts: 62
Location: chennai

PostPosted: Mon May 10, 2010 5:36 pm
Reply with quote

But how Enrico?

substr work with string of characters.... but this is an array.... how would you use this here....?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon May 10, 2010 5:38 pm
Reply with quote

if You read the TS post
the variable involved is an array element, not an array
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Advice on Arrays PL/I & Assembler 10
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts Reference documentation DFSDDLT0 IMS DB/DC 2
No new posts Trying to reference a javascript glob... CLIST & REXX 7
No new posts DITTO/ESA R3 User's Guide and Referen... IBM Tools 3
Search our Forums:

Back to Top