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: 1894
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: 1777
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: 7315

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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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