How To
Summary
Would like to run 1000 NSLOOKUP commands from a TSO batch job with output routed to a single file.
Steps
This will create a file under the TSO Userid called nslookup and append the results of each nslookup command to this same file.
//CS50458A JOB (12345678),CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),
//NSLOOKUP EXEC PGM=IKJEFT01
//*
//SYSTCPD DD DISP=SHR,DSN=SYS1.TCPPARMS(TCPDATA)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
nslookup www.ibm.com >> nslookup
nslookup www.google.com >> nslookup
nslookup www.yahoo.com >> nslookup
/*
//NSLOOKUP EXEC PGM=IKJEFT01
//*
//SYSTCPD DD DISP=SHR,DSN=SYS1.TCPPARMS(TCPDATA)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
nslookup www.ibm.com >> nslookup
nslookup www.google.com >> nslookup
nslookup www.yahoo.com >> nslookup
/*
Document Location
Worldwide
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSSN3L","label":"z\/OS Communications Server"},"Component":"","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Was this topic helpful?
Document Information
Modified date:
10 August 2022
UID
ibm10881191