by er.manishawasthi » Sat Nov 22, 2008 4:12 pm
answer to ur questions.............
Where is w-count1 ???
Actually there is no w-count1, I mispelled it, It's w-count... I have also define W-COUNT in my working storage section.................
ThaNK YOU VERY MUCH FOR LETTING ME KNOW MY MISTAKE..........
what does it have to do with the type of record you have?
THE fILE FROM WHICH I'M READING IS A SEQUENTIAL FILE....So i'm using a counter to read four lines from a file ....and performing four diffrent functions......
I have used
PERFORM 3100-READ-INPUT
THRU 3100-EXIT
VARYING W-COUNT FROM 1 BY 1
UNTIL (W-COUNT > 4 OR END-INPUT-FILE = 'Y')
so that i limit fifth line............... Then after fouth functions i'm performing a intialisations para so In which i have Move 1 to a counter and again it performs four diffrent functions........
What determines whether you are inserting an arrival or depart segment? Are you assuming that you will have a record for each airport/airline? Are you making sure that your input file is PRE-SORTED in airport-airline-arrival-depart sequence?
Right now i have been given a dummy project. So i'm assuning the records are sorted and the input file is reviewed and passed by my senior........ So my input file is presorted airport-airline-arrival-depart sequence
Also, please consider an error report on why your insert failed.
Please elaborate what you want to say.... i couldn't get what you wanted me to do . I'm new to IMS DB.. and this is my first code.....
You need to look at the seg-level when retrieving the airport and airline. If you get a "GE" - which one was it?
Even i have this questiopn in my mind but don't know what to do ..If GE occurs how can i know which segement is not fount ..( AIRPORT or AIRLINE). I might need to discuss with my senior on monday..
Also, you need to report on "II" on your insert
IF STATUS-CODE = 'II'
DISPLAY 'DUPLICATE INSERT'
I'm displaying duplicate insert when Status - code is II but don't know what do you mean by ''you need to report on ''
You need to define ws-rec.
Actually the field decription of my Airport , Airline , Arrival Segment and depart is diffrent so i'm using ws-rec as maximum.
I'm attaching a txt file giveing description of fields of each and every segment so that u can understand My pupose of using it ..if you still have questions reagarding this let me know...
And on Monday My senior will be checking my code . so please, let me know iof ther is any mistake in it........
You do not have the required permissions to view the files attached to this post.