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

GETMAIN Concept in data transfer


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Sun Apr 12, 2009 11:31 am
Reply with quote

Hi,

I am in need of some help on GETMAIN, Please do help me

In my program (say PROGRAM1) i used GETMAIN to pass data
In WSS (WM-SEAM-AREA-POINTER POINTER VALUE NULLS. )
In Linkage Section (SEAMCONV-RECORD)

Code:
EXEC CICS GETMAIN
                SET      (WM-SEAM-AREA-POINTER)
                LENGTH   (LENGTH OF SEAMCONV-RECORD)
                INITIMG  (WM-SEAM-AREA-INIT)
                RESP     (CICS-RESPONSE)
           END-EXEC

           IF  CICS-RESPONSE = DFHRESP (NORMAL)
               SET ADDRESS OF SEAMCONV-RECORD
                                       TO WM-SEAM-AREA-POINTER


and Called other program(say WL-PROGRAM2 has program2) using LINK
Code:
EXEC CICS LINK
         PROGRAM  (WL-PROGRAM2)
         COMMAREA (SEAMCONV-RECORD)
         LENGTH   (LENGTH OF SEAMCONV-RECORD)
         RESP     (CICS-RESPONSE)
        SYNCONRETURN
END-EXEC


HOW TO CODE PROGRAM2 TO RECIEVE THE DATA that is transfered using GETMAIN FROM PROGRAM1.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Sun Apr 12, 2009 7:26 pm
Reply with quote

Normal DFHCOMMAREA will do it. Passing data to a CICS program through DFHCOMMAREA doesn't change if you use GETMAIN instead of WORKING-STORAGE.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top