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

Senior Member


Joined: 29 Apr 2008
Posts: 2023
Location: USA

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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top