Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Unload data from table using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
saideepu

New User


Joined: 30 Jan 2013
Posts: 9
Location: india

PostPosted: Thu Oct 03, 2013 3:39 pm    Post subject: Unload data from table using JCL
Reply with quote

HI,

i want to unload data from table using JCL with dynamic input values,so i tried like below but am facing problem(INVALID OPERAND '' FOR KEYWORD 'ID'),if any one know please suggest me.

//JOB123U JOB (ACCT),'UNLOAD',CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID

// SET MINVAL=0
// SET MAXVAL=5000

****

//SYSIN DD *
UNLOAD DATA FROM TABLE SIMOTIME.DATA.SUB998D1
(
ID INTEGER EXTERNAL,
ATSN,
)
WHEN (ATSN <> '' AND ID >= &MINVAL AND ID <= &MAXVAL)


Thanks
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2002
Location: UK

PostPosted: Thu Oct 03, 2013 3:47 pm    Post subject:
Reply with quote

Well, your keyword ID is not a JCL keyword - it is in your program control cards but you do not mention which program you are using. Probably something to do with DB2? In which case probably posting in DB2 would be a better idea in future.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1786
Location: Bloomington, IL

PostPosted: Thu Oct 03, 2013 4:01 pm    Post subject:
Reply with quote

Incidentally, Deepa-chan, you should be aware that JCL and control cards blindly copied from Simotime will almost certainly not work on your machine.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Thu Oct 03, 2013 4:02 pm    Post subject: Reply to: Unload data from table using JCL
Reply with quote

JCL Symbol Substitution is not done for data cards. You'll need to pre-process your JCL and cards and then SUBmit the output., or kick into the INTRDR (if you are able) depending on how you do your own substitution.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us