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
 

 

Cobol NUM ON and UNNUM command option

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

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 02, 2006 1:31 am    Post subject: Cobol NUM ON and UNNUM command option
Reply with quote

IDENTIFICATION DIVISION. 00000100
PROGRAM-ID. TEST. 00020000
AUTHOR. SRINI. 00021000

I am getting line no's at the end of my cobol program, and even if I do nums off it doesnt go. Can some one tell me what is the command to remove that.

Here is the dump of the profile for the member:

=PROF>,....SRCELIB (FIXED - 80)....RECOVERY ON....NUMBER OFF...................
,=PROF>,....CAPS ON....HEX OFF....NULLS OFF....TABS OFF.........................
,=PROF>,....AUTOSAVE ON....AUTONUM OFF....AUTOLIST OFF....STATS ON..............
,=PROF>,....PROFILE UNLOCK....IMACRO NONE....PACK OFF....NOTE ON................
,=PROF>,....HILITE COBOL CURSOR FIND...........................................
Back to top
View user's profile Send private message

MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Nov 02, 2006 1:46 am    Post subject: Re: cobol nums off option
Reply with quote

As you currently have NUMBER OFF, then it is matter clearing the numbers,

you can use following commad to clear numbers:

Code:

c all p'?' ' ' 72 80 ;


That is to change any char between column 72 to 80 to space.
Back to top
View user's profile Send private message
srini63

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 02, 2006 1:54 am    Post subject: Re: cobol nums off option
Reply with quote

MFRASHEED wrote:
As you currently have NUMBER OFF, then it is matter clearing the numbers,

you can use following commad to clear numbers:

Code:

c all p'?' ' ' 72 80 ;


That is to change any char between column 72 to 80 to space.


when i give that command it says that "invalid right boundary". when i remove the 80 alone and give it works but it doesnt remove the line #'s at the last.
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Nov 02, 2006 2:00 am    Post subject: Re: cobol nums off option
Reply with quote

Well, Source PDS are 80 bytes in length, can you type COLS on command line and cut/paste display, like this one:

Code:

=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
****** ********************************* Top of Data **********************************
000001        IDENTIFICATION DIVISION.                                                 
000002        PROGRAM-ID.   TESTPGMR.                                                 
Back to top
View user's profile Send private message
srini63

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 02, 2006 2:04 am    Post subject: Re: cobol nums off option
Reply with quote

MFRASHEED wrote:
Well, Source PDS are 80 bytes in length, can you type COLS on command line and cut/paste display, like this one:

Code:

=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
****** ********************************* Top of Data **********************************
000001        IDENTIFICATION DIVISION.                                                 
000002        PROGRAM-ID.   TESTPGMR.                                                 


its 80 bytes only, even then getting an error saving that invalid length
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Nov 02, 2006 2:20 am    Post subject: Re: cobol nums off option
Reply with quote

Yes, your profile also says FIXED(80) so i should worked. Did you make sure there is SPACE between 72 and 80?
Back to top
View user's profile Send private message
srini63

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 02, 2006 2:32 am    Post subject: Re: cobol nums off option
Reply with quote

MFRASHEED wrote:
Yes, your profile also says FIXED(80) so i should worked. Did you make sure there is SPACE between 72 and 80?


there are no's like this between 73 to 80

00000101
00020000
00021000
00030000
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Nov 02, 2006 2:49 am    Post subject: Re: cobol nums off option
Reply with quote

Problem you said was with ending boundary that is 80, so command should work, i don't know why it wouldn't work. Can you cut/paste what you entered, and what is displayed along with few source lines and COLS turned on.
Back to top
View user's profile Send private message
srini63

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 02, 2006 3:34 am    Post subject: Re: cobol nums off option
Reply with quote

MFRASHEED wrote:
Problem you said was with ending boundary that is 80, so command should work, i don't know why it wouldn't work. Can you cut/paste what you entered, and what is displayed along with few source lines and COLS turned on.


hey thanks for all your help. the command is UNNUM, it worked and now the no's are gone!!
Back to top
View user's profile Send private message
PERUMALA

New User


Joined: 01 Nov 2006
Posts: 9

PostPosted: Thu Nov 02, 2006 3:56 am    Post subject: Try this
Reply with quote

Hi,

First type NUM ON command
then type UNNUM command


Thanks
Venkata
Back to top
View user's profile Send private message
PERUMALA

New User


Joined: 01 Nov 2006
Posts: 9

PostPosted: Thu Nov 02, 2006 3:57 am    Post subject: Sorry
Reply with quote

Sorry....I could not check that it is already solved in the above message

Venkata Perumala
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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