How to delete leading spaces/blank in COBOL ?
Example:- 01 data-name-1 pic x(220) " English is a
language".
I would like to delete leading spaces.

Answer Posted / arne royce tiangson

I CAN FIND THE WRITE OUTPUT.. PLEASE EXPLAIN THIS CODE
'MOVE WS-USERID-TEMP(WS-TALLY + 1 : ) TO WS-LS-USERID'

THNX

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various section in data division and briefly explain them.

682


IF I mention stop run in CICS what happens?

1884


How you can characterize tables in cobol?

706


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

984


What are the different types of condition in cobol and write their forms.

648






Discuss about changing dataset name in proc.

756


how do you reference the variable unblock file formats from cobol programs

734


Explain how to differentiate call by context by comparing it to other calls?

678


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1103


Can we redefine the field of x(200) to less than 200?

806


how do you reference the variable block file formats from cobol programs

672


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

691


Which division and paragraphs are mandatory for a COBOL program?

703


What is report-item in COBOL?

702


What is the default value(s) for an initialize and what keyword allows for an override of the default?

682