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

How to move values from single dimension array to 2 dimensio


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Visu1311

New User


Joined: 03 Aug 2021
Posts: 1
Location: India

PostPosted: Tue Aug 03, 2021 11:13 pm
Reply with quote

Hi,
From subprogram thru copybook I get values to main program in single dimension array like
Table1
03 Store
05 products X(10) occurs 25 times.
05 rates S9(5).99 occurs 25 times.
In main program I want to store this for 12 months occurance.
Table2
02 months occurs 12 times.
03 Store
05 products X(10) occurs 25 times.
05 rates S9(5).99 occurs 25 times.
How can I do this. Could anyone help on this?.
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1189

PostPosted: Tue Aug 03, 2021 11:27 pm
Reply with quote

#1. Read the COBOL manual

#2. Run some tests from examples

#3. Try to apply these new knowledges to your task

#4. If not working, present here YOUR CODE, YOUR DATA, YOUR RESULTS, THE ERROR MESSAGES, if any, etc.

Do not forget to use the forum's code tags when presenting any code
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Merge a variable number of records fr... DFSORT/ICETOOL 5
No new posts check if two PD values are equal, no ... DFSORT/ICETOOL 4
No new posts array indexing PL/I & Assembler 4
No new posts Trying to use sort to do two function... DFSORT/ICETOOL 14
No new posts Combining Multiple Row Values into Si... DB2 3
Search our Forums:

Back to Top