Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is the following MOVE statement works without Error?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ramvishwa
Warnings : 2

New User


Joined: 18 Dec 2006
Posts: 18
Location: bangalore

PostPosted: Fri Jan 05, 2007 5:29 pm    Post subject: Is the following MOVE statement works without Error?
Reply with quote

WORKING-STORAGE SECTION.
01 WS-LOGIN.
02 USER PIC X(8).
02 PASSWORD PIC X(8).

------------------
----------------------------
EXEC CICS
RECIEVE MAP('MAP1') MAPSET('SIS')
INTO (MAP1I)
END-EXEC.
PARA2.
MOVE USERNMI TO WS-LOGIN.
MOVE PASWDI TO WS-LOGIN

This "MOVE" statement is associated with cics-cobol.. Clear my doubt. CORRECT ME IF AM WRONG..
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Jan 05, 2007 6:07 pm    Post subject: Re: IS THAT MY 'MOVE' STATEMENT WORKS OR NOT
Reply with quote

ramvishwa wrote:
Code:
WORKING-STORAGE SECTION.
            01 WS-LOGIN.
                 02 USER PIC X(8).       
                 02 PASSWORD PIC X(8).

        ------------------
           ----------------------------
             EXEC CICS
                   RECIEVE MAP('MAP1') MAPSET('SIS')
                   INTO (MAP1I)
             END-EXEC.
      PARA2.
             
MOVE USERNMI TO WS-LOGIN.
MOVE PASWDI TO WS-LOGIN

This "MOVE" statement is associated with cics-cobol.. Clear my doubt. CORRECT ME IF AM WRONG..
It would work better if you did this:
MOVE USERNMI TO USER OF WS-LOGIN.
MOVE PASWDI TO PASSWORD OF WS-LOGIN
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us