MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AFTER POSITIONING verb

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Wed Feb 18, 2004 11:43 am    Post subject: AFTER POSITIONING verb Reply with quote

Hi,

We are changing an old cobol program which is having statement

WRITE RECORD1 FROM TEMP-RECORD AFTER POSITIONING REPORT-CC

Here REPORT-CC is having value '0'.

But when compiling we are getting error saying that "POSITIONING was not defined as a data-name".

Please help me to solve this.

regards
Ranjish
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Feb 18, 2004 12:10 pm    Post subject: Reply with quote

Ranjish,

I guess your program is OS/VS cobol program . POSITIONING verb was dropped from the COBOL-85 standard. You can use ADVANCING verb. You need to convert the values being moved to report-cc into numeric equivalents.

Code:

WRITE RECORD1 FROM TEMP-RECORD AFTER ADVANCING 2 LINES


The 0 value of report-cc translates t0 2 lines. check this link for explanation of carraige control characters.

http://www.mvsforums.com/helpboards/viewtopic.php?t=1496&highlight=carriage

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Wed Feb 18, 2004 12:35 pm    Post subject: Reply with quote

Hi Kolusu,

Thank you very much.

regards
Ranjish
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group