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
 

 

F command code usage

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu May 29, 2008 2:58 pm    Post subject: F command code usage
Reply with quote

Hi,

I used F commancd ode to insert a segment int he beginning.
The inserted segement has no keys. Already i have one segment in database. If I insert again, its showing segment already exists(status coded II)
If the segment has no key means, is it possible to insert another segment?

Pls help.
Back to top
View user's profile Send private message

shabir46

New User


Joined: 24 Jan 2008
Posts: 6
Location: Kerala

PostPosted: Tue Jun 10, 2008 5:04 pm    Post subject:
Reply with quote

Hi Prabha,

The F command code is used for accessing the first segment from any perticular level from the Segment hirarchy...

Not sure why u used F command code while loading the segments..

Thanks,

Shabir
Back to top
View user's profile Send private message
mkarthikeyan

New User


Joined: 07 Aug 2008
Posts: 34
Location: Bangalore

PostPosted: Sun Aug 17, 2008 4:03 am    Post subject: Reply to: F command code usage
Reply with quote

We can use F with segments that have either no key at all or a non unique key, and that have HERE specified on the RULES operand of the SEGM statement in the DBD. If you specify HERE in the DBD, the F command code overrides this, and IMS inserts the new segment occurrence as the first occurrence of that segment type. Using the F command code to override the RULES specification.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Sun Aug 17, 2008 4:27 am    Post subject:
Reply with quote

In all my years of IMS, I limited my use of command codes. There were some that I thought would solve a specific problem, but not so. Try to understand what IMS is doing behind the scenes. For instance, when you use a pathcall command code, IMS is resolving all of the things that would you would be doing if you just coded it with the qualified SSA's. Try to think of your access methods - whether HDAM or HIDAM - the most commonly used. Always - always remember that IMS is POSITIONAL. Also, remember that everything you want to know is in your PCB. You can go after all child segments in a database with an unqualifed SSA specified for that child without knowing it's parent - then find the parent key by looking at the concatenated key in the key feedback area of the SSA. IMS is driven by POINTERS - it knows where it is and who belongs to whom. Twin forward and backward pointers in your DBD definition help resolve - and quickly - issues such as these.
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 -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts )SEL and )ENDSEL usage cvnlynn TSO/ISPF 4 Thu Jun 15, 2017 1:15 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


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