I have created a command that display Source file and library. Now i want that when i enter library name and press f4 on Source file, pgm should display all the PF- SRC's in that Library. For F4 option i have used Choice program but since only limited paramters are passed in Choice pgm i am not able to paas library name and further can't call a pgm that will display list of Source files. Below is the Code snippet for CMD type object :- CMD PROMPT('Source Scan for HUB Standard') PARM KWD(SOURCE) TYPE(*CHAR) LEN(1) RSTD(*YES) + VALUES(N A) MIN(1) + CHOICE('N,A') PARM KWD(SRCFILE) TYPE(FILE) RSTD(*NO) + PROMPT('SOURCE FILE') FILE: QUAL TYPE(*NAME) LEN(10) RSTD(*NO) EXPR (*YES) + CHOICE(*PGM) + CHOICEPGM (XXXXXLIB/YYYPGM) QUAL TYPE(*NAME) LEN(10) DFT(*LIBL) + SPCVAL((*LIBL)) EXPR(*YES) PROMPT ('Library') Below is the Choice pgm:- PGM PARM(&PARM1 &PARM2) DCL VAR(&PARM1) TYPE(*CHAR) LEN (21) DCL VAR(&PARM2) TYPE(*CHAR) LEN (2000) IF COND(%SST(&PARM1 1 10) = 'CHOICE ' *AND + %SST(&PARM1 11 10) = 'SRCFILE ' *AND + (%SST(&PARM1 21 1) = 'C' *OR %SST (&PARM1 + 21 1) = 'P')) THEN (DO) /* (%SST(&PARM1 21 1) = 'C' *OR %SST (&PARM1 + */ CHGVAR VAR(&PARM2) VALUE('Name, F4 for List') ENDDO IF COND(%SST(&PARM1 1 10) = 'CHOICE ' *AND + %SST(&PARM1 11 10) = 'SRCFILE ' *AND + %SST(&PARM1 21 1) = 'P') THEN (DO) CHGVAR VAR(&PARM2) VALUE('Name, F4 for List') CALL PGM(GTSQL) PARM ('XXXXLIB') return ENDDO Thanks in Advance for looking into.
1 3579Post New HSBC IBM AS400 AllOther Interview Questions
Dear All,I have RRB exam on 19th dec Plz send me the Last 5 years RRB Q&A of Electronics & communication Dept to mail id sham28sharieff@gmail.com.. please frnds if u do have the Q&A.. Plz send it..
How to use events in reactjs? Give an example of using events?
* i completed gratuation BBA but i passed 50% marks and i will give bank exam its valiad for bank
Why did you want to become an astronomer?
Explain the approximate cost of the corrosion penetration monitoring system(cpmp)?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is the magnetic field (coil DC ) of Turbo Expander?
Can you explain how AI is used in predictive maintenance for industrial equipment?
i am preparing for motor vehicle assistant inespector please send me old questions papers.
You are given the following information in respect of a company: Fixed cost –Rs.13,000 Variable cost –Rs.14,000 Net profit –Rs.3,000 Net sales-Rs.30,000 Find out: a>BEP b>The profit for sales volume of Rs.50,000 c>The volume of sales to make a profit of Rs.10,000
How do I find the sql server version?
What are pretrained models, and how do they work?
Who can give me Stracher Design for my plan For Coloum Position. Please call me 9921761702
How do you keep each member of the team involved and motivated?
How does XAI address regulatory compliance issues?