IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ftp text file from PC to ZOS1.9


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
luna_yuel

New User


Joined: 22 May 2010
Posts: 4
Location: BeiJing China

PostPosted: Mon May 24, 2010 9:00 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon May 24, 2010 9:10 am
Reply with quote

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
View user's profile Send private message
luna_yuel

New User


Joined: 22 May 2010
Posts: 4
Location: BeiJing China

PostPosted: Mon May 24, 2010 9:26 am
Reply with quote

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
View user's profile Send private message
luna_yuel

New User


Joined: 22 May 2010
Posts: 4
Location: BeiJing China

PostPosted: Mon May 24, 2010 9:31 am
Reply with quote

OH my mistake! Use EDIT open the file on ZOS is no character is truncated. thanks a lot again.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon May 24, 2010 9:45 am
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

Is your doubt now clear?

d
Back to top
View user's profile Send private message
luna_yuel

New User


Joined: 22 May 2010
Posts: 4
Location: BeiJing China

PostPosted: Mon May 24, 2010 10:31 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon May 24, 2010 11:51 am
Reply with quote

Sounds like you're "good to go" icon_smile.gif

d
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon May 24, 2010 4:51 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top