×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem using C$COPY in Acucobol.

Problem using C$COPY in Acucobol.

Problem using C$COPY in Acucobol.

(OP)
Hi.

We are creating a line sequential file on our VMS machine and then using Acucobol to copy the file into the windows world where it will perform some magic and create other files.

The problem that we are sitting with is that the file appears perfect on VMS but after Acucobol completes the initial copy to the windows directory then the file is "corrupted" because the copy function has inserted what looks like <tab>'s into the records.

We can't find any help on this so any ideas why this is happening or tips to resolve the problem would be appreciated.

Thanks.

"Of all the things I've lost I miss my mind the most."

RE: Problem using C$COPY in Acucobol.

Are the output records LINE SEQUENTIAL or RECORD [BINARY] SEQUENTIAL?

LINE SEQUENTIAL records can have tabs inserted into them, there is an option to turn that feature off.  Tom Morrison can tell you how to do it.

RE: Problem using C$COPY in Acucobol.

(OP)
Hi Webrabbit.

The records are written out as line sequential. I have tried searching through the compile options to see if I could become wiser and find a solution that way but have found nothing yet.

Is Tom Morrison on this forum?

Thanks.
Hayden

"Of all the things I've lost I miss my mind the most."

RE: Problem using C$COPY in Acucobol.

It might be an alpha switch setting, or may require a library call.

Tom Morrison is a vendor rep for Micro Focus and he watches this forum.

I believe Micro Focus has purchased AcuCOBOL, but am not 100% certain.

RE: Problem using C$COPY in Acucobol.

MF has indeed bought AcuCOBOL a few years ago. with Acu there are switches you can use to deal with tabs on files. and one of their utilities can also be used to view and convert the files to a diff format if required

Regards

Frederico Fonseca
SysSoft Integrated Ltd
www.syssoft-int.com

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

RE: Problem using C$COPY in Acucobol.

(OP)
So far, no luck with getting this resolved. I have discovered that the excel files that we create which are then copied back to the VMS server are also corrupted and cannot be opened properly in excel afterwards. So it would seem that the problem extend beyond that of the simple sequential files.

Anybody have any advise?

Thanks.
Hayden.

"Of all the things I've lost I miss my mind the most."

RE: Problem using C$COPY in Acucobol.

Can you tell whether the tabs are replacing a number of spaces, or are they simply inserted?

RE: Problem using C$COPY in Acucobol.

C$COPY does not do much processing really should not do much processing. usage is as follows, and only thing that makes a bit of difference is FILE-TYPE.
    CALL "C$COPY"    
        USING SOURCE-FILE, DEST-FILE, FILE-TYPE,    
        GIVING COPY-STATUS   

HOWEVER.... if you are using ACUSERVER on your vms machine (and I suspect you are) then there are issues associated with it and you just bumped on one of them.

Can you tell us which program you are using on VMS to create the file, and if it is a AcuCOBOL program can you give us the SELECT and FD of that file. also can you tell us what are the OS file attributes on the VMS side.


And to rule out something can you create a file with just 2 or 3 records (sample file with NO sensitive data but with same record layout) and then
1 - ftp that file out of VMS using BINARY MODE
   treat this as file sample1
2 - using ftp with normal conversion
   treat this as file sample2
3 - "download" file using the C$COPY option "S" as filetype
   treat this as file sample3
4 - "download" file using the C$COPY option "R" as filetype
   treat this as file sample4

and send all 4 files to frederico_fonseca at domain below for me to have a look

Also send the configuration file you are using with both your program on the windows machine and the acuserver on the vms machine if you are indeed using acuserver.
also would like to know which versions you are using of both compiler, runtime and acuserver

Regards

Frederico Fonseca
SysSoft Integrated Ltd
www.syssoft-int.com

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close