View previous topic :: View next topic
|
Author |
Message |
George Tillmon
New User
Joined: 22 Mar 2010 Posts: 27 Location: Montgomery, AL
|
|
|
|
Hi.
I am trying to load several fields with spaces in a record.
The first field is 2192 (header record) , the second is 22 (detail record)and the third is 2185 (trailer record).
The total length of each record is 2220.
Why are spaces not showing in the file?
Everything looks fine until I use a text editor and there are no spaces.
Which causes the Federal Government, to whomo I send the file, to have a conniption.
Maybe the header and trailer records I can understand, but not the detail record. The field I am trying to fill with spaces is only 22 bytes long.
So, is the length of my header and trailer records to long for cobol to use? I do not get an error when I compile the program or execute the job.
Thanks,
George |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Line 317 is your problem.
Seriously, if you don't show us what code you're using, information about the file, and what you're getting for output already -- how on earth do you expect to get any realistic help? Furthermore, your subject is about digits in a field but you are talking about spaces in a record. Terminology is critical in IT and so far you have mixed terminology so bad I don't think anybody can understand exactly what it is you want to do! |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
What does your problem have to do with the subject line "Maximum number of digits for a field"? Are you filling the fields with spaces or low-values? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
How many level 01 entries are there for the FD for this output file?
Which text editor are you using? Mainframe or after the data is downloaded? If you browse the file on the mainframe with HEX ON, are the spaces in the records or are these veriable length and so are truncated at lrecl?
How is the data downloaded? Often, trailing spaces are deleted . . . |
|
Back to top |
|
|
George Tillmon
New User
Joined: 22 Mar 2010 Posts: 27 Location: Montgomery, AL
|
|
|
|
I am writing from three different 01 levels.
All files are fixed block.
I am using PsPad on the pc to look at the file after using Filezilla to download the file from the mainframe to my pc.
Yes, trailing spaces are being deleted, however, the Feds and I are not into agreement over this.
When I browse the file on the mainframe, with HEX ON, it shows 40. There are spaces in the proper places.
Thanks,
George |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Quote: |
I am using PsPad on the pc to look at the file after using Filezilla to download the file from the mainframe to my pc.
Yes, trailing spaces are being deleted, however, the Feds and I are not into agreement over this.
When I browse the file on the mainframe, with HEX ON, it shows 40. There are spaces in the proper places.
|
So you are saying that displayed on the MF all is good but after transferring it to your PC all is bad?
Maybe it's the transfer? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Are you transferring the file to the Feds via FTP?
If so, there is an option in FTP to suppress trailing blanks -- if set that could cause the trailing spaces to not be transferred. You would need to work with your site support group to confirm this. You could test with
Code: |
//SYSFTPD DD *
TRAILINGBLANKS TRUE
/*
|
added to your FTP job. |
|
Back to top |
|
|
George Tillmon
New User
Joined: 22 Mar 2010 Posts: 27 Location: Montgomery, AL
|
|
|
|
Thanks for all the assistance.
I am using Filezilla to download the file from the mainframe to one of our lan locations. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
George Tillmon wrote: |
I am using Filezilla to download the file from the mainframe to one of our lan locations. |
Is Filezilla suppressing the trailing blanks? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
While Filezilla documentation is not clear on the point, there is at least a strong possibility that Filezilla does not deal with trailing spaces in data files. You should try another download method that does handle the trailing spaces to see if your problem is cleared up. |
|
Back to top |
|
|
George Tillmon
New User
Joined: 22 Mar 2010 Posts: 27 Location: Montgomery, AL
|
|
|
|
Thank you.
That is what I am in the process of doing. I have contacted one of our pc technical professionals to do a maniframe to lan ftp.
I am looking to see about another ftp application also. |
|
Back to top |
|
|
|