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
 

 

I have Two array how to copy in reverse order

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ambesh

New User


Joined: 07 Jul 2005
Posts: 6
Location: pune

PostPosted: Mon Aug 22, 2005 11:08 am    Post subject: I have Two array how to copy in reverse order
Reply with quote

I have two array
one array A occurs 10 times.
It has picture clause pic x(2).
another array B occurs 10 times
it has piture clause pic x(3).
I have to copy A -> B in reverse order.
Back to top
View user's profile Send private message

senti

New User


Joined: 18 Aug 2005
Posts: 19

PostPosted: Mon Aug 22, 2005 12:44 pm    Post subject: Re: I have Two array how to copy in reverse order
Reply with quote

Hey Ambesh,

Since B has an extra byte, you may want to determine what it should have.Once that is determined, its just copying from A to B bytewise putting it in a loop.

Regds, Senti
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Mon Aug 22, 2005 3:00 pm    Post subject:
Reply with quote

Hi,

Do u mean u want copy A(1) to B(10).

If that's ur requirement. Here is one way to code .
Declare M as 1 and N as 10, K as 1 and L as -1.

PERFORM PARA-1 UNTIL M>10
PARA-1.
MOVE A(M) TO B(N)
ADD K to M
ADD L to N .
this will do ur task. if occurs is not 10 then work accordingly.

Elo'nics
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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