Jul 2, 2008 #1 vsiano Programmer Joined Sep 7, 2007 Messages 2 Location US hello, i have 2 stem variables i would like to join into 1 large one. dataA. and dataB. to create dataALL. is there a way to do this without looping? thanks, val
hello, i have 2 stem variables i would like to join into 1 large one. dataA. and dataB. to create dataALL. is there a way to do this without looping? thanks, val
Jul 3, 2008 #2 rexxhead Programmer Joined Jul 31, 2002 Messages 611 Location US There's no native way to do this, but looping will be lightning fast. Why don't you want to do this in a loop? Frank Clarke --Now officially with no one I can vote for in '08... Upvote 0 Downvote
There's no native way to do this, but looping will be lightning fast. Why don't you want to do this in a loop? Frank Clarke --Now officially with no one I can vote for in '08...
Aug 17, 2008 #3 carlosreimer Programmer Joined Aug 17, 2008 Messages 1 Location BR Hi Val, You can do it using the PIPE command. Like this example: /* */ a.1='a1' a.2='a2' a.0=2 b.1='b1' b.2='b2' b.0=2 'pipe stem a. | append stem b. | stem c.' say c.0 do i=1 to c.0 say c.i end Stem c. is the concatenation of a. and b. Upvote 0 Downvote
Hi Val, You can do it using the PIPE command. Like this example: /* */ a.1='a1' a.2='a2' a.0=2 b.1='b1' b.2='b2' b.0=2 'pipe stem a. | append stem b. | stem c.' say c.0 do i=1 to c.0 say c.i end Stem c. is the concatenation of a. and b.
Dec 15, 2008 #4 JeffQuade Programmer Joined Dec 15, 2008 Messages 1 Location US Under straight z/OS you can do this like so: do i=1 to dataA.0 dataAll.i = dataA.i end do j=1 to dataB.0 i=j+dataA.0 dataAll.i = dataB.j end dataAll.0 = dataA.0 + dataB.0 Upvote 0 Downvote
Under straight z/OS you can do this like so: do i=1 to dataA.0 dataAll.i = dataA.i end do j=1 to dataB.0 i=j+dataA.0 dataAll.i = dataB.j end dataAll.0 = dataA.0 + dataB.0