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

Uploading Recfm=VB to Mainframe


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

New User


Joined: 17 May 2006
Posts: 18
Location: malaysia

PostPosted: Thu May 22, 2008 11:34 am
Reply with quote

I'm sending a file which is in RECFM=VB and LRECL=967 from an ASCII system to the HOST. But The uploaded file is not in sequence.

I created the file first with RECFM=VB and LRECL=967, after this I performed the transfer.

Thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 22, 2008 11:41 am
Reply with quote

Usually use the BLOCK method for VB files, of do a VB >>> FB conversion
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: Thu May 22, 2008 11:05 pm
Reply with quote

Hello,

Quote:
But The uploaded file is not in sequence.
Please clarify this. I do not understand how the transfer would affect the sequence.

How did the vb file get created on the pc?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 22, 2008 11:30 pm
Reply with quote

just a hint...
if on the pc the file is ascii text, when converting to ebcdic text ...
the collating sequence will be different
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu May 22, 2008 11:30 pm
Reply with quote

I too am confused.

The ASCII file will contains end-of-line (EOL) characters in the form of a Carriage-Return/Line-Feed (CR/LF) pair. An upload using ASCII will convert the EOL to an EBCDIC Inter-Record-Seperator (IRS) value of 1E. This process will be done record-by-record, so the chances of losing a record or of them being stored out-of-sequence is virtually nil.
Back to top
View user's profile Send private message
poobalen

New User


Joined: 17 May 2006
Posts: 18
Location: malaysia

PostPosted: Thu May 29, 2008 12:37 pm
Reply with quote

Hi ,

The Vb file was uploaded to the pc from mainframe, And then later we send back the file from pc to Mainframe.

i managed to upload the file ,but i have change format to fb before uploading the file to pc and mainframe. In mainframe then i convert in back to Vb format.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 29, 2008 12:44 pm
Reply with quote

again ...
in ASCII ( pc ) numbers come before the letters
in EBCDIC ( mainframe) the numbers come after the letters ...

in ASCII numbers and letters are a contiguos set

in EBCDIC they are not ( thanks to Hollerith )

provide the proper sorting before processing the data
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: Thu May 29, 2008 7:21 pm
Reply with quote

Hello,

Quote:
in EBCDIC they are not ( thanks to Hollerith )
If memory serves, the Hollerith code pre-dated ascii. . .

I seem to remember from "way back" that other system creators worked hard to be different from IBM. See how much fun it has been. . .
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 29, 2008 7:42 pm
Reply with quote

depends the meaning of pre-date icon_smile.gif

not certainly in the predator sense

ascii origin is an offspring of punched tape architecture

EBCDIC is an offspring of punched card conventions ( Hollerith, BCD and so on )
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 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top