Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Different file size application server v presentation server

TJRP
Participant
0 Likes
462

Hi,

I have an interesting one here!

When I load a file from the application server (using open dataset) and use the file length command I get a different overall file size compared to a file loaded from the presentation server (using GUI_upload).

Can any one explain why the file sizes are different pls, I believe the correct file size is from the application server.

regards

J-J

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
404

Hi Jim,

What operating systems are on the presentation server (PC) and the application server?

The difference may be caused by different file formats. EG Windows/DOS versus Unix.

A Windows/DOS text file contains CHR(13) and CHR(11) or CR/LF as the end of record marker, while Unix can use either. This can accound for a different file size particularly large text files on Windows/DOS and Unix.

In my experience it is better to check the number of records after loading. If they are the same then the file is the same.

cheers

David Cooper

2 REPLIES 2
Read only

Former Member
0 Likes
405

Hi Jim,

What operating systems are on the presentation server (PC) and the application server?

The difference may be caused by different file formats. EG Windows/DOS versus Unix.

A Windows/DOS text file contains CHR(13) and CHR(11) or CR/LF as the end of record marker, while Unix can use either. This can accound for a different file size particularly large text files on Windows/DOS and Unix.

In my experience it is better to check the number of records after loading. If they are the same then the file is the same.

cheers

David Cooper

Read only

TJRP
Participant
0 Likes
404

I have now resolved my issue and I'm using FM SCMS_UPLOAD

Regards

J-J