any one can explain about ims functio codes

IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)
poornaboba
Posts: 1
Joined: Sat Apr 09, 2011 8:48 am
Skillset: cobl,jcl,imsdb
Referer: friends suggestion

any one can explain about ims functio codes

Postby poornaboba » Sat Apr 09, 2011 8:56 am

Hi everybody,
any one can explain the exact difference between the function code gn, gnp.

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: any one can explain about ims functio codes

Postby NicC » Sat Apr 09, 2011 9:53 am

What do you think the difference is? Did your thoghts change after you read some relevant material? Do you KNOW what GN and GNP stand for?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

sriraj1122
Posts: 19
Joined: Thu Nov 18, 2010 10:04 am
Skillset: COBOL
DB2
CICS
JCL
Referer: www.ibmmainframes.com

Re: any one can explain about ims functio codes

Postby sriraj1122 » Wed Apr 20, 2011 1:39 pm

GN and GNP are the function codes used to retrieve the segments data in I/O area of the application program.

Generally when you issue calls using GN function code it will retrieve all the segments information in top to bottom, front to back and left to right fashion.

But if u issue a call using GNP function code it will retrieve the segments with in the parent where the parentage is set.

Hope this helps

Regards,
Sriraj k

User avatar
DFSHDC40
Posts: 41
Joined: Sat Oct 16, 2010 4:16 pm
Skillset: MVS IMS DB2 JCL ISPF REXX ... and all the glue that keeps them together
Referer: internet
Location: IMS.SDFSRESL

Re: any one can explain about ims functio codes

Postby DFSHDC40 » Thu Apr 21, 2011 6:39 am

"GN and GNP are the function codes used to retrieve the segments data in I/O area of the application program."
errrr ..... No!
If the code hasn't been changed, why is the LKED date today?

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: any one can explain about ims functio codes

Postby NicC » Thu Apr 21, 2011 11:19 am

Presume he meant INTO rather than IN I/O area
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

Suny
Posts: 8
Joined: Thu Apr 21, 2011 3:57 pm
Skillset: Cobol, Db2. IMS, CICS
Referer: friends

Re: any one can explain about ims functio codes

Postby Suny » Thu Apr 21, 2011 6:22 pm

Difference- GNP needs parent but GN does not