Receiving a search string using VGET

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
mainframesara
Member
Posts: 13
Joined: Mon Oct 26, 2009 12:00 pm

Receiving a search string using VGET

Post by mainframesara » Tue Jan 12, 2010 2:00 pm

Hi,
I am writing a rexx tool to find the search string in JCL. I used the VPUT and VGET command to pass the string from rexx code to the macro.
The string received fine using VGET in macro. But i am not able to get the string in the ISREDIT "find" command. Please refer the below code.

Rexx program:

ADDRESS ISPEXEC;"CONTROL ERRORS RETURN"
ADDRESS ISPEXEC
"VPUT (srchvar id ) shared"
"VIEW DATASET ('"EXPMEM"') MACRO(cursor)"
"vget ( id ) shared"

Macro.

/* REXX */
ADDRESS ISREDIT
"MACRO"
ADDRESS ISPEXEC;"CONTROL ERRORS RETURN"
ADDRESS ISPEXEC "VGET (SRCHVAR ID) PROFILE"
ADDRESS ISREDIT
"F ALL '"SRCHVAR"'" - in this place the string is not received.
DROP ARRAYOUT.
FRC = RC

If anyone know the answer means please help me.

Saravanan S

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Jan 12, 2010 4:39 pm

Maybe?

"VPUT (srchvar id ) shared"
"VGET (SRCHVAR ID) PROFILE"
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others