record greater than 80char



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

record greater than 80char

Postby white-shadow » Sun Jul 18, 2010 12:38 am

hi
in ps file the length is 80 columns. but i have to insert some data whose length together is greater than 80 chars per record.
so is there any ways to expand the the columns and fit all the data in it.
i think i explained the query.
thanx in advance.
white-shadow
 
Posts: 12
Joined: Sat Jul 17, 2010 11:39 am
Has thanked: 0 time
Been thanked: 0 time

Re: record greater than 80char

Postby dick scherrer » Sun Jul 18, 2010 2:09 am

Hello,

Change the record length. . . In every place the file is used.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: record greater than 80char

Postby white-shadow » Sun Jul 18, 2010 2:13 am

can u please explain it. because 80 is maximum length.
white-shadow
 
Posts: 12
Joined: Sat Jul 17, 2010 11:39 am
Has thanked: 0 time
Been thanked: 0 time

Re: record greater than 80char

Postby dick scherrer » Sun Jul 18, 2010 2:38 am

Hello,

If you add the new data to the record format the length will no longer be 80.

You cannot put 5 quarts of data in a 4-quart container. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: record greater than 80char

Postby white-shadow » Sun Jul 18, 2010 2:44 am

hmmm got it. Not possible.
thanx
white-shadow
 
Posts: 12
Joined: Sat Jul 17, 2010 11:39 am
Has thanked: 0 time
Been thanked: 0 time

Re: record greater than 80char

Postby NicC » Sun Jul 18, 2010 10:17 am

You can convert your file to be hold variable length records. The ones that are already 80 bytes will stay at 80 and any new records will be whatever length they are. But, as Dick intimated, any downstream programs/JCL will have to be changed.

You may be able to do the conversion by utility but why not write a program to do it and thus get practice in reading/writing variable length records?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: record greater than 80char

Postby nagendra » Mon Jul 19, 2010 4:07 pm

hiiii,

here 80 columns are there right..

but if data is there more than 80 characters... no problem we can enter...

if there are 80 columns only that belongs to the front end screen only not the record...

if u want to insert more than 80 characters we shud hav some symbols like hiphen or something to be continued in the next line.....

hope u understood my point of view..

may be, i m wrong..

but it may be that, i m right.....


hope for good....
Nagendra
nagendra
 
Posts: 21
Joined: Mon Jul 19, 2010 12:18 pm
Location: bangalore
Has thanked: 0 time
Been thanked: 0 time

Re: record greater than 80char

Postby NicC » Mon Jul 19, 2010 4:14 pm

nagendra wrote:if there are 80 columns only that belongs to the front end screen only not the record...
if u want to insert more than 80 characters we shud hav some symbols like hiphen or something to be continued in the next line.....


That will work only if the current record structure has a filler in column 80 and if you are prepared to change the processing logic of the program creating the dataset and all programs that read the dataset - not to mention the documentation :o
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: record greater than 80char

Postby nagendra » Mon Jul 19, 2010 4:36 pm

Keep X at 80th colomn and continue that code in next line
Nagendra
nagendra
 
Posts: 21
Joined: Mon Jul 19, 2010 12:18 pm
Location: bangalore
Has thanked: 0 time
Been thanked: 0 time

Re: record greater than 80char

Postby NicC » Mon Jul 19, 2010 4:52 pm

doesn't matter what character you use - if column 80 is already used for data then you cannot use it for a continuation marker.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Next

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post