View previous topic :: View next topic
|
Author |
Message |
luna_yuel
New User
Joined: 22 May 2010 Posts: 4 Location: BeiJing China
|
|
|
|
Hi! everyone:
This is my first question: I want to upload a text file from PC to ZOS1.9.The file is ACSII , it's record length is 272 and the end of file there is no EOL.I used the ftp command like this:
"quote site primary=700 secondary=300 recfm=FA LRECL=273 TRAILingblanks wrap"
the file upload was successful ,but the header character was truncated . I aslo tried the command "quote site primary=700 secondary=300 recfm=FA LRECL=274 TRAILingblanks wrap" and ftped the file again, the problem was reappear. so anyone can help me and resolve this problem? thanks.WAITING ONLINE.......
The file on PC is:
888 AZ10103180909909620YTO LED AZ 200708229999999999999999H
after ftp to ZOS1.9:
88 AZ10103180909909620YTO LED AZ 200708229999999999999999H |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Suggest you not use FA. . .
Actually, i'd pre-allocate the file on the mainframe and simply send the file. |
|
Back to top |
|
|
luna_yuel
New User
Joined: 22 May 2010 Posts: 4 Location: BeiJing China
|
|
|
|
dick scherrer wrote: |
Hello and welcome to the forum,
Suggest you not use FA. . .
Actually, i'd pre-allocate the file on the mainframe and simply send the file. |
thanks a lot , the problem is resolved,but i want to WHY.
preallocation on ZOS is right.But the source files maybe come from many locations and the ftp command maybe sent by different people at random time. so have anyother methods can be used? |
|
Back to top |
|
|
luna_yuel
New User
Joined: 22 May 2010 Posts: 4 Location: BeiJing China
|
|
|
|
OH my mistake! Use EDIT open the file on ZOS is no character is truncated. thanks a lot again. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for letting us know
Is your doubt now clear?
d |
|
Back to top |
|
|
luna_yuel
New User
Joined: 22 May 2010 Posts: 4 Location: BeiJing China
|
|
|
|
The record fomat FB is right .So the entirely FTP quote command is
quote site primary=700 secondary=300 recfm=FB LRECL=273 TRAILingblanks wrap
this command can upload the file which the record length=272 from PC to ZOS, and add EOL at the end of the line. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Sounds like you're "good to go"
d |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Your original post has
Quote: |
"quote site primary=700 secondary=300 recfm=FA LRECL=273 TRAILingblanks wrap" |
and record format FA is fixed length records with carriage control characters in the first byte. The first byte would not show up on a browse as it is assumed to be carriage control, not part of your data record. |
|
Back to top |
|
|
|