Search found 6 matches

by Seema Jain
Thu Dec 19, 2024 11:25 am
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Include only part of input in output.
Replies: 3
Views: 12607

Re: Include only part of input in output.


zum13
The alternative is to substring the field in a MOVE statement:

MOVE WA-INPUT-FIELD (5:4) TO WA-OUTPUT-FIELD

which will copy four characters from WA-INPUT-FIELD starting at position five to WA-OUTPUT-FIELD.


Thank you zum13. I've used this, will this work for Variable records also?
by Seema Jain
Sun Dec 15, 2024 8:49 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Include only part of input in output.
Replies: 3
Views: 12607

Include only part of input in output.

If I have an input file containing data like 12345578, and I want the output to include only 5578, what would the logic for this be in COBOL?
by Seema Jain
Tue Feb 09, 2016 12:04 pm
Forum: IBM DB2 and IMS DB/DC
Topic: Help needed in SQLCODE -401.
Replies: 4
Views: 3110

Re: Help needed in SQLCODE -401.

Thanks all.

Code: Select all

WHERE DATE(TIMESTAMP_COLUMN) > CURRENT DATE - 7 YEARS;  
has worked. :)
by Seema Jain
Tue Feb 09, 2016 12:02 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Limit the display of records while copy.
Replies: 2
Views: 1412

Re: Limit the display of records while copy.

Thanks for your help William Collins. This JCL has worked for me

Code: Select all

//STEP1 EXEC PGM=SORT 
//SYSOUT DD SYSOUT=* 
//SORTIN DD DSN=my.tape.dataset,DISP=SHR 
//SORTOUT DD DSN=my.disk.dataset, 
// DISP=(,CATLG,DELETE), 
// UNIT=WORK,SPACE=(CYL,(50,100),RLSE) 
//SYSIN DD * 
OPTION COPY 
STOPAFT=500
/*
by Seema Jain
Mon Jan 04, 2016 4:26 pm
Forum: IBM DB2 and IMS DB/DC
Topic: Help needed in SQLCODE -401.
Replies: 4
Views: 3110

Help needed in SQLCODE -401.

Hello all-

I am using the following query: Please suggest how to correct it ?

Code: Select all

SELECT * FROM TABLEN  
some conditions
WHERE timestamp_column > CURRENT DATE - 7 YEARS; 

I am simply trying to get the data of 7 years from current date. But it ends in SQLCODE -401.


Thank you.
by Seema Jain
Mon Jan 04, 2016 4:22 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Limit the display of records while copy.
Replies: 2
Views: 1412

Limit the display of records while copy.

Hi,

Some of the files are on tape and have a very huge volume of data. I am trying to bring it on disk to see the records. Could anyone tell me how to limit the display of records on disk while copying from tape. I do not want take copy of al the data, I just want to see some sample data. I am ...

Go to advanced search