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

mainframe COBOL - ascii coding format


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
btgprasad

New User


Joined: 21 Mar 2006
Posts: 4

PostPosted: Thu Jun 29, 2006 9:18 pm
Reply with quote

will mainframe COBOL understand ascii coding format? corrct me if my question wrong..
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 Jun 30, 2006 1:16 am
Reply with quote

Yes, when it is read from a Tape. You use the JCL parameter OPTCD=J.
Back to top
View user's profile Send private message
btgprasad

New User


Joined: 21 Mar 2006
Posts: 4

PostPosted: Fri Jun 30, 2006 11:33 am
Reply with quote

we are getting FTP file which will be ASCII format.when it is coming to main frame environment record format of that file is being entarly changed changed.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Jul 05, 2006 4:51 pm
Reply with quote

Hi,
Couldn't understand your question.

Mainframe has EBCDIC format rather than ASCII.

But, you can upload/ftp files in a ASCII format from/to PC , It works fine as it will be converted automatically into format which is recognized by mainframe.
Back to top
View user's profile Send private message
btgprasad

New User


Joined: 21 Mar 2006
Posts: 4

PostPosted: Wed Jul 05, 2006 6:02 pm
Reply with quote

thank you for your responce parikshith.
i wanna read ASCII files.while running program it is giving abend that OPEN -error as file does nt have ASCII charecterstic in assign clause.what cd b reason .? (wihle uploading file from PC to MF, file is in still ebcdic format as i checked in by giving hex on . so i have a code which convert EBCDIC into ASCII. so created file containg ASCII which is not readable format but while giving hex on it showing proper equalents).
and can we ASCII file in main frams ? if it is ...is readble .or will it show in junk char.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top