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: send variable length binary (VB) file to mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
vinh nguyen

New User


Joined: 20 Mar 2008
Posts: 3
Location: California

PostPosted: Tue Mar 25, 2008 9:32 pm    Post subject: ftp: send variable length binary (VB) file to mainframe
Reply with quote

Hi,

I would like to send a variable length binary file to the mainframe from a unix and/or linux system. The case is as follows. I send a file from the mainframe to the unix using BINARY and SITE RDW. The file is on the unix. Now, I want to send it back to the mainframe.

I used options such as BINARY, SITE RDW RECFM=VB LRECL=121.

Because we are sending as binary, the RDW is recognized as data and gets stored. Also, every line is being filled up to 121 and there is no variable length except maybe the last line.

How do i let the mainframe or ftp know when is the end of a line so it can save properly?

I've googled for weeks and haven't found a solution yet. The only thing i found was maybe to pad the file down with spaces to make it fixed length, and then post-process it on the mainframe. however, i don't know how to do this either.

Help?

I can append a (fake) BDW to the file if necessary. Also, I would prefer any manipulations on the unix side as i don't know mainframe as well.
Back to top
View user's profile Send private message

Gautam512

Active User


Joined: 05 Oct 2005
Posts: 309
Location: Vizag / US

PostPosted: Wed Apr 16, 2008 2:56 am    Post subject:
Reply with quote

hi,

try saving the file as a wordpad and try doing the transfer.
Back to top
View user's profile Send private message
vinh nguyen

New User


Joined: 20 Mar 2008
Posts: 3
Location: California

PostPosted: Wed Apr 16, 2008 3:33 am    Post subject: Reply to: ftp: send variable length binary (VB) file to main
Reply with quote

What exactly do u mean? Save the file as wordpad?

I'm trying to send TO the mainframe variable length file containing binary data. So problem is telling the mainframe how long each record length is...
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: Wed Apr 16, 2008 4:56 am    Post subject:
Reply with quote

Hello,

Quote:
try saving the file as a wordpad and try doing the transfer.
How do you beileve that will help?

As far as i know, wordpad files are in a proprietary format that is completely incompatible with the mainframe. If you go to "Save As", there is no selection for IBM Mainframe, Variable Length . . .

Did you try this on your system? If yes, please post what happened. . . If no, please do so and then tell us what happens.


vinh nguyen -
How was this file used on the unix system? What processing needs it sent back to the mainframe - it is already there. . .?
Back to top
View user's profile Send private message
vinh nguyen

New User


Joined: 20 Mar 2008
Posts: 3
Location: California

PostPosted: Wed Apr 16, 2008 5:36 am    Post subject:
Reply with quote

hey dick,

as of now, we are using the VB file from the mainframe to process using SAS in the UNIX (just our group at the company, the mainframe will never go away). We transfer the VB file over to the unix with the RDW intact, and we have a python script that appends a fake BDW to the data so SAS could read it via RECFM=VB.

Now, sometime, we might do changes to the raw data file (VB), and we have to send it out, and in order to do this, we have to get the file back on the mainframe. I don't have to do it yet (no cases yet), but i think we may have to do it in the future.

If we can do this, then our group could do all of our analysis on the unix and we'll just get and send files to the mainframe.

thanks for all your help!
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: Wed Apr 16, 2008 6:56 am    Post subject: Reply to: ftp: send variable length binary (VB) file to main
Reply with quote

You're welcome icon_smile.gif

So far, i don't believe i've been much help. . .

If you have sas on both platforms, you might open an issue with sas support and see if they have a way to move sas files back and forth between the mianframe and unix.

Hopefully, there will be a solution before you meet the requirement.

d
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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