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

Move the date from input file to group varible


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

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu May 20, 2010 3:46 pm
Reply with quote

Hi,
I have input file having records in different cases.
First records has combination of LOwer and upper cases.
My input variable is able to read data in a file which are in UPPER CASES but all the data is lower cases are ignored.
May you tell me why there is such a condition.
As per the read statment

Read input file it should move the date from input file to group varible defined in FD section in similar format.

Please provide your suggestion.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu May 20, 2010 4:27 pm
Reply with quote

Quote:
My input variable is able to read data in a file which are in UPPER CASES but all the data is lower cases are ignored.
How do you know this? COBOL quite happily handles upper case, lower case, special characters, and non-printing characters in a PIC X variable.

Since you did not show us any variable definitions, or READ statements, or even any proof of your claim, just how do you expect us to be able to help you? We know what COBOL does based on reading the manuals (link at the top of the page) and years of experience; your claim contradicts this knowledge. Therefore, there is some special circumstance or other factor that you haven't told us about -- and without any code to look at, we cannot proceed.
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 20, 2010 8:21 pm
Reply with quote

Hello,

Quote:
but all the data is lower cases are ignored.
No, they're not. . . The code is mis-handling them. . .

When you correct the code, they will no longer be "ignored".

If you want help from the forum, you have to provide something for us to work with. . .

Suggest you show a few bits of mixed-case data from your input (use HEX ON, copy/paste, and the "Code" tag) and the code that "ignores" things. . .
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 20, 2010 10:04 pm
Reply with quote

Kinda odd that this is the second time this week someone's posted a topic with this claim.
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 20, 2010 11:01 pm
Reply with quote

Hi Kevin,

A couple of thoughts come to mind. . .

1. didn't like the replies to the first one. they may have very similar ip addressess.
or
2. a totally different situation, but sounded similar to the other topic so there was hope that whatever fixed one would fix both.

The premise of both is questionable at best as COBOL has properly handled lower/mixed case for a very long time.

icon_rolleyes.gif
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri May 21, 2010 4:20 am
Reply with quote

Somebody please just write some code for me! icon_rolleyes.gif
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: Fri May 21, 2010 6:01 am
Reply with quote

Hi Dave,

Quote:
Somebody please just write some code for me!
So far, we cannot even get what is not working posted. . .

If the mixed-case data and the problem code was posted, we could probably help clarify, but as of now, we don't even have a problem description. If someone wanted to "write come code" i'm not sure where one would begin. . .

Maybe something we can use will be posted icon_idea.gif

d
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri May 21, 2010 6:26 am
Reply with quote

We haven't heard anything from the original poster. Maybe he has a emuulator that only displays upper case? Or maybe he has discovered that character compares in COBOL are case sensitive?
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Fri May 21, 2010 10:56 am
Reply with quote

Hi team,
The cobol program is working fine when i am trying to debug the code using display statement.

Thanks for your comments and guidance.

Regards,
Krunal
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: Fri May 21, 2010 7:07 pm
Reply with quote

Thanks for the update - good luck with the debugging icon_smile.gif

d
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top