Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1756
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: 1753
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: 7308

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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us