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

Moving Or setting POINTER to another POINTER variable


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

New User


Joined: 23 Feb 2023
Posts: 1
Location: India

PostPosted: Thu Feb 23, 2023 12:27 am
Reply with quote

Hi All,
New to mainframe forum - I have following requirement.
Copybook A
01 var-A.
05 var-1 usage pointer.
05 var-2 PIC X(10).
05 var-3 PIC x(5).
05 var-4 usage pointer.
Copybook B
01 var-B.
05 var-11 usage pointer.
05 var-22 usage pointer.
05 var-33 PIC X(15).

I need to set var-11 , var-22 of copybookB to var-1 , var-4 of copybook A.
I cannot use move statement so how I can achieve this ?
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2135
Location: USA

PostPosted: Thu Feb 23, 2023 4:55 am
Reply with quote

Did you ever try to read any document, or to use Google?

www.ibm.com/docs/en/i/7.3?topic=considerations-using-pointers-in-ile-cobol-program
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 23, 2023 9:23 am
Reply with quote

You are going to have many problems if you don't learn how to find things yourself. Look at the SET statement.
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 REXX/CMS How to place command console... CLIST & REXX 4
No new posts CA7 count with DATE variable CA Products 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top