easytrieve array

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
juares castro
Member
Posts: 11
Joined: Fri Nov 11, 2011 7:21 pm

easytrieve array

Post by juares castro » Fri Nov 11, 2011 7:43 pm

Hi!
Could someone help me about easytrieve movements array structure...?
I mean... is there a syntax like: move a to b(x:y) where x and y are subscritors of an array?

Thanks in advance!
juares castro

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sat Nov 12, 2011 12:21 am

What does your array look like? Specifying x and y as you have would indicate a 2-dimensional array.

Read about multi-dimensional arrays in the Easytrieve documentation. I don't have this where ia m this weekend.
Have a good one

juares castro
Member
Posts: 11
Joined: Fri Nov 11, 2011 7:21 pm

Post by juares castro » Sat Nov 12, 2011 10:47 pm

Hi DikDude!

My array has 12 occurs, not multi-dimensional, and I want move a value to all or a range of occurrencies, something like this:
Move a to b(1)
Move a to b(2)
Move a to b(3)... till 12 or just a range

and could I make a statement like: Move a to b(1:12) or (3:4)...

Just it!
Thanks in advance!
juares castro

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sun Nov 13, 2011 9:21 am

No, you need to move them one at a time.

If you want to do a "range", set up a loop incrementing thru the array and move them from the lowest in the range thru the highest in the range.
Have a good one

juares castro
Member
Posts: 11
Joined: Fri Nov 11, 2011 7:21 pm

Post by juares castro » Mon Nov 14, 2011 11:44 pm

Thanks!
juares castro

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others