IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how this file will be read?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandeep4u

New User


Joined: 12 Aug 2005
Posts: 32

PostPosted: Sat May 13, 2006 2:44 pm
Reply with quote

Hi,

I am having one problem while reading the file.

How the following file will be read..

00001290DAILY
*********************************
*------**-----**--------*NORMALLY BLANK
| | |OVERRIDE DATE FOR DAILY RUN(COL 16-25)
| | |E.G. '2002-01-31' (DEFAULT IS SYSTEM DATE)
| |
| |RUN TYPE = 'DAILY ' OR 'REFRESH' (COL 9-15)
|
RUN NUMBER (COL 1-8) AUTOMATICALLY INCREMENTED


I am using first row and date only. What about rest information. will it also be read?

thanks,

sandy
Back to top
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Sat May 13, 2006 3:44 pm
Reply with quote

hi sandy,

it depends how you read the file. i assume your file name as INFILE. If you've coded this way...


READ INFILE INTO WS-INFILE-REC(1:10)

then only 10 bytes of INFILE will be available. Else you'll have entire record read.

suggestions or corrections welcomed...

gowtham
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 01, 2006 3:37 pm
Reply with quote

Perform the read 2 times but not untill eof
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top