View previous topic :: View next topic
|
Author |
Message |
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
When I open the file in browse mode I can see first line full of dotted lines , how to remove through Cobol program, I initialized output file |
|
Back to top |
|
 |
Marso
REXX Moderator

Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
1. Use HEX ON and HEX OFF to see the hexadecimal value hidden behind the dots.
2. Use F11/F10 to scroll right and left.
3. Is there only one dotted line or are there also other text lines ?
4. What do you expect to find ?
5. What do you mean by "I initialized output file" |
|
Back to top |
|
 |
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
sivasaras wrote: |
When I open the file in browse mode I can see first line full of dotted lines , how to remove through Cobol program, I initialized output file |
If I understand what you said, you see something like this -
Code: |
File Edit Edit_Settings Menu Utilities Compilers Test Help
-------------------------------------------------------------------------------
VIEW XXXXXX.XXX.ASM Columns 00001 00072
Command ===> Scroll ===> HALF
****** ***************************** Top of Data ******************************
''''''
'''''' |
- This is NOT a Cobol issue. It is an ISPF issue. I hope a moderator will move this topic to the appropriate forum.
- You are not opening the data set (NOT "file") in browse mode. You are opening the data set in "view" mode.
- The data set is empty. There is no data in the data set.
- In browse mode, you see
Code: |
Menu RefList RefMode Utilities Workstation Help
------------------------------------------------------------------------------
View Entry Panel Empty data set or member
Command ===>
ISPF Library:
Project . . . X
Group . . . . X . . . . . . . . .
Type . . . . X
Member . . . (Blank or pattern for member selection list)
Other Partitioned, Sequential or VSAM Data Set:
Data Set Name . . . XXX.ASM
Volume Serial . . . (If not cataloged)
Workstation File:
File Name . . . . .
Options
Initial Macro . . . . Confirm Cancel/Move/Replace
Profile Name . . . . . / Browse Mode
Format Name . . . . . View on Workstation
Data Set Password . . / Warn on First Data Change
Mixed Mode |
Notice the Empty data set or member on the third line. You do not see Browse mode selected on this screen to open the data set in "view" mode. |
|
Back to top |
|
 |
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Now, on the other hand. if you actually see something like this
Code: |
Menu Utilities Compilers Help
-------------------------------------------------------------------------------
BROWSE XXXXXX.XXX.OBJ Line 00000000 Col 001 080
Command ===> Scroll ===> PAGE
********************************* Top of Data **********************************
................................................................................ |
Then, most likely, YOUR program wrote junk to the data set, which was how the data set I am displaying was created. Since you have not shared any details about the program, WE cannot diagnose the problem. |
|
Back to top |
|
 |
prino
Senior Member

Joined: 07 Feb 2009 Posts: 1318 Location: Vilnius, Lithuania
|
|
|
|
And what does this have to do with Cobol? |
|
Back to top |
|
 |
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
while writing to the file
Code: |
INITIALIZE WS-OUTPUT-RECORD
ACCEPT WS-DATE-CURRENT FROM DATE.
MOVE WS-DATE-CURRENT TO WS-DATE-YYMMDD
MOVE WS-HEADER-ID TO OUT1-HEADER-ID
MOVE WS-DATE-CURRENT1 TO OUT1-DATE-HD
MOVE WS-FILE-NAME TO OUT1-FILE-NAME
MOVE WS-OUTPUT-RECORD TO OUTPUT-RECORD
WRITE OUTPUT-RECORD |
while writing first line full of dotted lines after header id
1HDROUT1
Coded for you |
|
Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8701 Location: Dubuque, Iowa, USA
|
|
|
|
So far, you have not posted a single thing that we can use to help you.
Quote: |
while writing first line full of dotted lines after header id
1HDROUT1 |
Don't tell us -- show us. Post an ISPF browse of the first few lines of the data set so we can see what the computer is telling us (as opposed to what you are interpreting the computer to be telling you). |
|
Back to top |
|
 |
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
And post it with 'hex on' and using the code tags (I coded your previous code) so that the data is properly presented. |
|
Back to top |
|
 |
|