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

Format of the Mainframe file: ascii/binary/ebcdic


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
richie

New User


Joined: 11 Jun 2005
Posts: 24

PostPosted: Tue Apr 17, 2007 2:38 pm
Reply with quote

Hi,

How do we know the format of a MF flat file whether its ascii/binary/ebcdic.

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

Global Moderator


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

PostPosted: Tue Apr 17, 2007 2:44 pm
Reply with quote

You need to talk to the programmer responsible for writing the program that is creating the file to get the exact file structure and attributes.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Apr 17, 2007 2:47 pm
Reply with quote

richie,

Quote:
How do we know the format of a MF flat file whether its ascii/binary/ebcdic


Do we have ascii in MF?
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Apr 17, 2007 5:33 pm
Reply with quote

First of all, everything is actually in binary. This is just base 2 coding.

The question about ASCII or EBCDIC pertains to which binary (or, equivalently, hex) bit sequences represent which display characters.

IBM mainframes use the EBCDIC coding system, but one can certainly store ASCII coded data. If you do so, however, your processing programs must know to convert.

SAS has ASCII conversion format codes, so that is one way to convert should you be given some ASCII data on mainframe but need to convert to the standard EBCDIC.
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 -> Mainframe Interview Questions

 


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 Populate last day of the Month in MMD... SYNCSORT 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top