Need code for query

Software AG's platform-independent programming language with full support for open-source and Internet applications
mainframe1
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Skillset: cobol, dn2, jcl, adabas, roscoe
Referer: FRIEND

Need code for query

Postby mainframe1 » Thu Jul 02, 2015 3:25 pm

i have atable with data table:City

city_name nobombay 123
madras 222
bombay 333
madras 444


pls give *number and *counter vales, for find city where city_name= bombay
and also read city where city_name= bombay
thanks

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: Need code for query

Postby NicC » Fri Jul 03, 2015 2:37 am

Split from an old topic. You should know by now that a new question is a new topic.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

User avatar
RGZbrog
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Skillset: Natural, Adabas, Predict, Natural Security, Construct, EntireX, SPoD, NaturalONE
Referer: SAG Developer Forum
Location: California, USA
Contact:

Re: Need code for query

Postby RGZbrog » Mon Jul 06, 2015 10:53 am

*NUMBER and *COUNTER are well-described in the documentation, under System Variables. What is it abut them that you don't understand?

In the time it took to post your question, you could have written a program to give you the answers. If you are having trouble with that program, post your code and we will help to correct it.

Sample programs are found in the SYSEXPG library and documented in the Programming Guide.


  • Similar Topics
    Replies
    Views
    Last post