Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Move the date from input file to group varible

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Move the date from input file to group varible
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: 8121
Location: East Dubuque, Illinois, USA

PostPosted: Thu May 20, 2010 4:27 pm    Post subject:
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 20, 2010 8:21 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu May 20, 2010 10:04 pm    Post subject: Reply to: PS file data.
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 20, 2010 11:01 pm    Post subject: Reply to: PS file data.
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: 247
Location: Cincinnati OH USA

PostPosted: Fri May 21, 2010 4:20 am    Post subject:
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 21, 2010 6:01 am    Post subject: Reply to: PS file data.
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    Post subject:
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    Post subject:
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 21, 2010 7:07 pm    Post subject: Reply to: Move the date from input file to group varible
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us