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
 

 

check for wrong data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Wed May 04, 2005 11:25 am    Post subject: check for wrong data
Reply with quote

Hi friends

i have some doubts, plz do reply

i have 10,000 records as input of the record
one of the record data is of invalid format (ie a particular field has non numeric data) Is there any way to check for the given data is of valid format or not ....before processing it through program


in a CICS-COBOL programs when is COPY expanded
At Translate time or at compile time...

Regards
siva
Back to top
View user's profile Send private message

pushkar

New User


Joined: 29 Apr 2005
Posts: 2

PostPosted: Wed May 04, 2005 5:11 pm    Post subject:
Reply with quote

Hi siva,

Quote:
in a CICS-COBOL programs when is COPY expanded
At Translate time or at compile time...

Corect me if i am wrong. but what i understand is the copy is expanded at compile time.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed May 04, 2005 5:31 pm    Post subject:
Reply with quote

i think it should be in translating step as as far as i know, steps are like as follows:
1. SYSIN(Source Program)
2.Command Level Language Translater --> sysprint translator listing
3. SYSPUNCH, containing transalted source program
4.High level Language assembler --> compiler listing(Object Module created).
5.Link Editor -->Link-editor sysprint
6. Load module creted

hence the copy book should be expanded at the first step only.say for example i have a copy book which certain CICS statement, hence when transaltion of CICS code is done then this ciopy book should be available in uncompressed format.
correct me if i m wrong and let me know if u have diffrent opinion on this.
Thanks
Back to top
View user's profile Send private message
srividya.srinivasan

New User


Joined: 30 Mar 2005
Posts: 11
Location: Pune, India

PostPosted: Thu May 05, 2005 3:52 pm    Post subject: 10,000 records as input of the record
Reply with quote

Hi Siva,

If u have so many records , then put a condition before moving the field.
Ex:
IF filed IS NUMERIC
Process
ELSE
Write to some Error tracking file

By doing thsi neither will u r Job Abend and u'll b able to fine the Record with Alphanumeric Format.



Vidya
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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