Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ftp text file from PC to ZOS1.9

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: ftp text file from PC to ZOS1.9
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

Site Director


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

PostPosted: Mon May 24, 2010 9:10 am    Post subject:
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    Post subject: ftp question
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    Post subject: ftp command
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

Site Director


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

PostPosted: Mon May 24, 2010 9:45 am    Post subject: Reply to: ftp text file from PC to ZOS1.9
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    Post subject: ftp command
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

Site Director


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

PostPosted: Mon May 24, 2010 11:51 am    Post subject: Reply to: ftp text file from PC to ZOS1.9
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: 7936
Location: Bellevue, IA

PostPosted: Mon May 24, 2010 4:51 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us