Assignment of single value multiple times

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
charigln
Member
Posts: 5
Joined: Thu May 22, 2014 11:55 am

Assignment of single value multiple times

Post by charigln » Thu May 22, 2014 12:12 pm

Hi,

I need to Move value 9's to variable WS-VAR which has length of 25 bytes, How do I do it in EasyTrieve?

WS-VAR should completely filled with 9's.

Regards,
Srini

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Thu May 22, 2014 12:19 pm

WS-VAR is an absurd name. Why can't you make it meaningful, to the task at hand?

Code: Select all

W-TO-FINALISE-some-meaningful-name S 25 A +
    VALUE "9999999999999999999999999"

W-some-meaningful-name = W-TO-FINALISE-some-meaningful-name

charigln
Member
Posts: 5
Joined: Thu May 22, 2014 11:55 am

See this also...

Post by charigln » Thu May 22, 2014 2:32 pm

Hey,

I will take care of the variable in program. We were trying this but not compiled yet ...

MOVE '9' TO WS-VAR FILL '9'

Hope above works... share your thoughts...

Regards,
srini

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri May 23, 2014 11:26 pm

Hope above works... share your thoughts...
There is no need for anyone's thoughts.

For such a simple exercise, you should have tried your alternatives and then posted if there were any surprises/problems . . .
Have a good one

academyindia4

Topic deleted by Admin

Post by academyindia4 » Fri Jan 15, 2016 8:23 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others