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

FTP a txt file to Mainframe


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
premcitit

New User


Joined: 15 Nov 2011
Posts: 5
Location: India

PostPosted: Fri Apr 20, 2012 9:42 pm
Reply with quote

Hi,

I transfered a txt file (having data under 7 columns) to mainframe as a flat file. When i viewed that flat file I noticed that the last 2 columns are appending at the bottom of the file. What should I do to make the last 2 columns to load after column 5?
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: Fri Apr 20, 2012 9:51 pm
Reply with quote

Hello,

Suggest you pre-allocate the file on the mainframe with the desired attributes, then upload the data.
Back to top
View user's profile Send private message
premcitit

New User


Joined: 15 Nov 2011
Posts: 5
Location: India

PostPosted: Fri Apr 20, 2012 10:01 pm
Reply with quote

Im sorry. Can you please elaborate this?
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: Fri Apr 20, 2012 10:17 pm
Reply with quote

Hello,

I'm not sure what needs elaboration. . . icon_confused.gif

By jcl or in tso/ispf allocate a file with the proper attributes (recfm, lrecl. space, etc). This should be the same dsn as is specified in the ftp process.

Run the ftp to upload the data into this file.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Apr 20, 2012 10:18 pm
Reply with quote

I don't suppose you could post an exact copy of the data (in hex) from the system you're sending FROM so maybe we might be able to make an educated guess?
Back to top
View user's profile Send private message
premcitit

New User


Joined: 15 Nov 2011
Posts: 5
Location: India

PostPosted: Fri Apr 20, 2012 11:02 pm
Reply with quote

Thanks you all. I can understand. But if we create a file and then load the data the time spending on this will be more time. If this could be fixed with some other option that wouldnt take much time will be very much helpful.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Apr 20, 2012 11:11 pm
Reply with quote

premcitit wrote:
Thanks you all. I can understand. But if we create a file and then load the data the time spending on this will be more time. If this could be fixed with some other option that wouldnt take much time will be very much helpful.

Is your batch window really so tight that adding an IDCAMS step to one job would be ruinous?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Apr 20, 2012 11:26 pm
Reply with quote

the description alone is not enough to provide any help.
if You are not able/willing to provide the info we ask,
then YOU are just wasting OUR time
Back to top
View user's profile Send private message
premcitit

New User


Joined: 15 Nov 2011
Posts: 5
Location: India

PostPosted: Fri Apr 20, 2012 11:35 pm
Reply with quote

If I do so I need to include an ftp step to load the data from the local to mainframe for which Im working to make my machine an FTP server. Thank you :-)
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: Sat Apr 21, 2012 12:04 am
Reply with quote

Hello,

Quote:
But if we create a file and then load the data the time spending on this will be more time.
Well, it could take "more" time, but i suspect it would be so little more that it would be nearly impossible to measure. . .
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: Sat Apr 21, 2012 12:16 am
Reply with quote

premcitit, it is obvious that this forum is too advanced for you. Please go to the Beginner's and Students Forum instead of this one. You have a better chance of getting help there, although from the tone of your posts in this thread, I doubt that they will be able to help you as much as you need, either, since it appears that you know nothing about mainframes, nor JCL, nor data sets, nor FTP.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Apr 25, 2012 3:47 pm
Reply with quote

IND$FILE? (it's slow though)
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
Search our Forums:

Back to Top