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: 8798
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: 19243
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: 10903
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: 10903
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: 19243
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: 10903
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 All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Techm mainframe deveoper 6 to 12 year... Mainframe Jobs 0
No new posts Mainframe Storage Needed Mainframe Jobs 0
No new posts Email attachment from mainframe is empty PC Guides & IT News 9
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts Need help In Mainframe Automation AF/... CLIST & REXX 14
Search our Forums:


Back to Top